On 30/07/07, Thomas Dalton thomas.dalton@gmail.com wrote:
to the constructor (which is right at the bottom of SpecialListUsers.php). There must be something else required to stop it appearing on Special:Specialpages, but that should be enough to stop users without the appropriate permission (replace block with whatever you like) seeing the list.
The "something else" depends on how the special page was written. If it's a recent one, which extends SpecialPage and overrides the constructor and execute() method, then the trick is to add a permission name, e.g. "block" or "userlist" as the second parameter in the parent::__construct() call in the constructor itself.
I suspect that Special:Userlist is one of the older breed, so this permission name is supplied in the list in includes/SpecialPage.php.
Rob Church