From 91094ea42d5a17039ea9a564506ad43aaa1a4bc0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 Mar 2009 10:01:00 +0000 Subject: [PATCH] Fix check against wrong permission (should be 'hideuser') --- includes/api/ApiQueryBlocks.php | 2 +- includes/specials/SpecialIpblocklist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index a2a77a1442..f2f4a7f420 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -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 diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index ac714398e8..004a6e8c96 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -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 -- 2.20.1