From: Rotem Liss Date: Sun, 16 Jul 2006 15:43:41 +0000 (+0000) Subject: Strangely, extension special pages are not allowed (you don't have permission ''... X-Git-Tag: 1.31.0-rc.0~56208 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0f62170ed71476b62fdae9ee6e1cb162c73b3655;p=lhc%2Fweb%2Fwiklou.git Strangely, extension special pages are not allowed (you don't have permission ''), although User::userCan checks for empty string; partial revert. --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 3a52f850d3..8ab7a41fc8 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -456,7 +456,11 @@ class SpecialPage * special page (as defined by $mRestriction) */ function userCanExecute( &$user ) { - return $user->isAllowed( $this->mRestriction ); + if ( $this->mRestriction == "" ) { + return true; + } else { + return $user->isAllowed( $this->mRestriction ); + } } /**