am 17.02.2009 14:21 schrieb Platonides:
> Peter Velan wrote:
>> I installed the extension
>> <http://www.mediawiki.org/wiki/Extension:NamespacePermissions>.
>> 
>> After defining new groups and granting rights to some users, these
>> rights are shown in detail on Special:ListUsers. How could I remove this
>> information from page Special:ListUsers?
>> 
>> Could I declare every Special:<page> to be a "Restricted special page"
>> (a page beeing shown in bold on "Special:SpecialPages" )?
> 
> Add a check on namespacePermissionsCheckNamespace() for namespace -1
> (special).

Ah ok, you mean, that I should modify this routine ...

#~~~~~~~~~~~~~~~~~~
function namespacePermissionsCheckNamespace( $title, $user, $action,
$result ) {
        if ( ( $ns = $title->getNamespace() ) >= 100 ) {
                if ( ! $user->isAllowed("ns{$ns}_{$action}") ) {
                        $result = false;
                        return false;
                }
        }
        return true;
}
#~~~~~~~~~~~~~~~~~~

... to return a FALSE if called with which arguments? Could you please
declare it with more detail?

> You may also be able to achieve the same using the Lockdown extension
> http://www.mediawiki.org/wiki/Extension:Lockdown It allows both
> namespace restriction ($wgNamespacePermissionLockdown) and special page
> restriction ($wgSpecialPageLockdown).

Yep, this one works, but the first method would not require an
additional extension to be installed.

Greetings,
Peter

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to