Fix check against wrong permission (should be 'hideuser')
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 9 Mar 2009 10:01:00 +0000 (10:01 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 9 Mar 2009 10:01:00 +0000 (10:01 +0000)
includes/api/ApiQueryBlocks.php
includes/specials/SpecialIpblocklist.php

index a2a77a1..f2f4a7f 100644 (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
index ac71439..004a6e8 100644 (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