Last modified: 2005-12-09 23:35:34 UTC
The function SpecialPage in module SpecialPage.php currently uses restriction (Minimum user level). IMHO this should be changed to use (probably an array of) permission key(s). Example: to suppress to show "User list", if the user hasn't the 'listusers' permission key of bugzilla 3294 (Introducing new permissionkeys 'listusers' and 'listcontributions'). Using the current function call, this cannot be achieved by passing the permission key to it. * @param string $restriction Minimum user level required, e.g. "sysop" or "developer". * @param boolean $listed Whether the page is listed in Special:Specialpages * @param string $function Function called by execute(). By default it is constructed from $name * @param string $file File which is included by execute(). It is also constructed from $name by default */ function SpecialPage( $name = '', $restriction = '', $listed = true, $function = false, $file = 'default', $includable = false ) {
It does use permission keys.