X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAutoblockList.php;h=3f98e93045aa29839b59f8aaa0d6c481bdc76445;hb=31f66267ae9763dcecd44c1e749fe0e91b5a3a01;hp=cab5a2ef4998adb8c44e2335a8efb8e6d5b5dbe2;hpb=695d7c28fe7036e9988ce92908185ebc41238296;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAutoblockList.php b/includes/specials/SpecialAutoblockList.php index cab5a2ef49..3f98e93045 100644 --- a/includes/specials/SpecialAutoblockList.php +++ b/includes/specials/SpecialAutoblockList.php @@ -21,6 +21,8 @@ * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; + /** * A special page that lists autoblocks * @@ -34,9 +36,7 @@ class SpecialAutoblockList extends SpecialPage { } /** - * Main execution point - * - * @param string $par Title fragment + * @param string|null $par Title fragment */ public function execute( $par ) { $this->setHeaders(); @@ -83,7 +83,10 @@ class SpecialAutoblockList extends SpecialPage { 'ipb_parent_block_id IS NOT NULL' ]; # Is the user allowed to see hidden blocks? - if ( !$this->getUser()->isAllowed( 'hideuser' ) ) { + if ( !MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $this->getUser(), 'hideuser' ) + ) { $conds['ipb_deleted'] = 0; }