X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=adca805168364105c89eec893c5e014d591b183c;hb=7ff1a16397aad6b14a957d964e583c8a86a57f72;hp=4bead3464c52e3f0a81cb9953e281f54657f315c;hpb=e53eb5b48dc5504ae215de213b31fdf2827201a8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4bead3464c..adca805168 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -553,7 +553,8 @@ class ProtectionForm { } $out .= Xml::closeElement( 'fieldset' ); - if ( $user->isAllowed( 'editinterface' ) ) { + if ( MediaWikiServices::getInstance()->getPermissionManager() + ->userHasRight( $user, 'editinterface' ) ) { $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); $link = $linkRenderer->makeKnownLink( $context->msg( 'protect-dropdown' )->inContentLanguage()->getTitle(),