am 04.03.2009 00:44 schrieb Thomas Dalton:
> 2009/2/14 Peter Velan <[email protected]>:
>> Hello,
>>
>> 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" )?
>
> If you're happy altering the PHP just change this line in SpecialListUser.php
Well, there are circumstances where altering of the code is ok; thats
what *open* source is all about ;-)
> $item = wfSpecialList( $name, $groups );
>
> to
>
> $item = wfSpecialList( $name );
>
> (I haven't tested that, but it ought to work.)
>
> Of course, that stops even admins seeing the list of user groups. If
> you want admins to still be able to see it, try something like
>
> if ($wgUser->isAllowed('viewusergroups') then $item = wfSpecialList(
> $name, $groups ); else $item = wfSpecialList( $name );
>
> (Don't forget to add 'global $wgUser' to the top of the function.)
>
> And then give admins, any whoever else, the viewusergoups permission.
Thanks for the tip, but this ...
> Remember, such changes to the PHP will be undone should you upgrade to
> a new version of MediaWiki.
... is the reason I don't like to fiddle inside of maintained code. I'm
almost sure that I will forget to adapt the code after the next
mediawiki upgrade.
Greetings,
Peter
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l