Fix check against wrong permission (should be 'hideuser')

This commit is contained in:
Aaron Schulz 2009-03-09 10:01:00 +00:00
parent 8697400ebb
commit 91094ea42d
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ class ApiQueryBlocks extends ApiQueryBase {
"ipb_range_end >= '$upper'"
));
}
if(!$wgUser->isAllowed('suppress'))
if(!$wgUser->isAllowed('hideuser'))
$this->addWhereFld('ipb_deleted', 0);
// Purge expired entries on one in every 10 queries

View file

@ -238,7 +238,7 @@ class IPUnblockForm {
$conds = array();
$matches = array();
// Is user allowed to see all the blocks?
if ( !$wgUser->isAllowed( 'suppress' ) )
if ( !$wgUser->isAllowed( 'hideuser' ) )
$conds['ipb_deleted'] = 0;
if ( $this->ip == '' ) {
// No extra conditions