X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FMergeLogFormatter.php;h=925c976d7ad84638a06319f5efed0d5238d65684;hb=5155abe0e6ab6589d4104a221df0a0b2c5142c16;hp=7a6fb9df487625c043e359578bb703bec8ace865;hpb=03720d7d67d3fd8c420d2db2fa8b7d459f273a72;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/MergeLogFormatter.php b/includes/logging/MergeLogFormatter.php index 7a6fb9df48..925c976d7a 100644 --- a/includes/logging/MergeLogFormatter.php +++ b/includes/logging/MergeLogFormatter.php @@ -22,6 +22,8 @@ * @since 1.25 */ +use MediaWiki\MediaWikiServices; + /** * This class formats merge log entries. * @@ -47,7 +49,9 @@ class MergeLogFormatter extends LogFormatter { public function getActionLinks() { if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden - || !$this->context->getUser()->isAllowed( 'mergehistory' ) + || !MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $this->context->getUser(), 'mergehistory' ) ) { return ''; }