X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FSpecialPage.php;h=ba8e318bcd293514aab391050834c79210b27f8c;hb=7b4eafda0d986180d20f37f2489b70e8eca00df4;hp=7d3303584deb34afca1031d5c0a3fc8258e47b05;hpb=4858f8afdabb2a1d7c60b7c14b6f4d398056c07e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index 7d3303584d..ba8e318bcd 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -292,7 +292,9 @@ class SpecialPage implements MessageLocalizer { * @return bool Does the user have permission to view the page? */ public function userCanExecute( User $user ) { - return $user->isAllowed( $this->mRestriction ); + return MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $user, $this->mRestriction ); } /**