X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=blobdiff_plain;f=includes%2Fskins%2FSkinTemplate.php;h=1e6c6431e12350c4ced067393b7d0f895b6c2134;hb=ab9436fb9a20b5a335574e36fdd476becabe2dd1;hp=7cfec2b5793ccf725fbde787c261968dd5affaa4;hpb=7a02772000491acb313dbc2de44fde79e57f61be;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 7cfec2b579..1e6c6431e1 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -1082,7 +1082,10 @@ class SkinTemplate extends Skin { } // Checks if the user is logged in - if ( $this->loggedin && $user->isAllowedAll( 'viewmywatchlist', 'editmywatchlist' ) ) { + if ( $this->loggedin && MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasAllRights( $user, 'viewmywatchlist', 'editmywatchlist' ) + ) { /** * The following actions use messages which, if made particular to * the any specific skins, would break the Ajax code which makes this