Author: michael
Description:
Hi all,
if( !$wgUser->isAllowed('asksql') ) {
$wgOut->sysopRequired();
return;
}
doesn't work. In the file Defines.php is the array with the rights:
$wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
'protect', 'block', 'userrights', 'createaccount', 'upload',
'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot', 'validate',
'import', 'importupload', 'renameuser' );
As 'asksql' is missed, even sysops can't execute the asksql. Unfortunately i am
not sure how
function isAllowed($action='') {
$this->loadFromDatabase();
return in_array( $action , $this->mRights );
}
works. (Otherwise i would submit a patch..)
Version: unspecified
Severity: normal