From: Rotem Liss Date: Sun, 16 Jul 2006 16:10:41 +0000 (+0000) Subject: Reverting the revert, the problem was an error in the extension. X-Git-Tag: 1.31.0-rc.0~56206 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=da46bf0109b4194bfb8594b479dc8186d76f016a;p=lhc%2Fweb%2Fwiklou.git Reverting the revert, the problem was an error in the extension. --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 8ab7a41fc8..3a52f850d3 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -456,11 +456,7 @@ class SpecialPage * special page (as defined by $mRestriction) */ function userCanExecute( &$user ) { - if ( $this->mRestriction == "" ) { - return true; - } else { - return $user->isAllowed( $this->mRestriction ); - } + return $user->isAllowed( $this->mRestriction ); } /**