Fix check against wrong permission (should be 'hideuser')
This commit is contained in:
parent
8697400ebb
commit
91094ea42d
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue