dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Declare dynamic properties"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialAutoblockList.php
diff --git
a/includes/specials/SpecialAutoblockList.php
b/includes/specials/SpecialAutoblockList.php
index
cab5a2e
..
3f98e93
100644
(file)
--- a/
includes/specials/SpecialAutoblockList.php
+++ b/
includes/specials/SpecialAutoblockList.php
@@
-21,6
+21,8
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A special page that lists autoblocks
*
/**
* 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();
*/
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?
'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;
}
$conds['ipb_deleted'] = 0;
}