diff options
Diffstat (limited to 'includes/logging/MoveLogFormatter.php')
-rw-r--r-- | includes/logging/MoveLogFormatter.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/logging/MoveLogFormatter.php b/includes/logging/MoveLogFormatter.php index 637a8e7821e9..6797f98f04bb 100644 --- a/includes/logging/MoveLogFormatter.php +++ b/includes/logging/MoveLogFormatter.php @@ -23,6 +23,8 @@ * @since 1.22 */ +use MediaWiki\MediaWikiServices; + /** * This class formats move log entries. * @@ -60,7 +62,9 @@ class MoveLogFormatter extends LogFormatter { public function getActionLinks() { if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden || $this->entry->getSubtype() !== 'move' - || !$this->context->getUser()->isAllowed( 'move' ) + || !MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $this->context->getUser(), 'move' ) ) { return ''; } |