X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialLog.php;h=c6927c1717a7e28e311d731e98fca2ddc33a32d4;hb=fd130247c28da68c351029124d8ddf1ad77db3f7;hp=2f0c2ced533569f404cce27b1e0e827bbe4cd4fc;hpb=afb7212d218875c72ff21ef3e253fb265aab7b19;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index 2f0c2ced53..c6927c1717 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -21,6 +21,7 @@ * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; use Wikimedia\Timestamp\TimestampException; /** @@ -264,7 +265,9 @@ class SpecialLog extends SpecialPage { private function getActionButtons( $formcontents ) { $user = $this->getUser(); - $canRevDelete = $user->isAllowedAll( 'deletedhistory', 'deletelogentry' ); + $canRevDelete = MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasAllRights( $user, 'deletedhistory', 'deletelogentry' ); $showTagEditUI = ChangeTags::showTagEditingUI( $user ); # If the user doesn't have the ability to delete log entries nor edit tags, # don't bother showing them the button(s).