X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;ds=sidebyside;f=includes%2Flogging%2FMoveLogFormatter.php;h=6797f98f04bbf98350601b50677beb7c24f7bed2;hb=f704207ba129198e21ada72c2961e5bd26ac3227;hp=43ca0ea1d5f67442cf7bc76a0efd666c455ef963;hpb=118bbe7f04a2c82f979d5f3dd8d71dbbf6d7358c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/MoveLogFormatter.php b/includes/logging/MoveLogFormatter.php index 43ca0ea1d5..6797f98f04 100644 --- a/includes/logging/MoveLogFormatter.php +++ b/includes/logging/MoveLogFormatter.php @@ -19,10 +19,12 @@ * * @file * @author Niklas Laxström - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license GPL-2.0-or-later * @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 ''; }