From da46bf0109b4194bfb8594b479dc8186d76f016a Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sun, 16 Jul 2006 16:10:41 +0000 Subject: [PATCH] Reverting the revert, the problem was an error in the extension. --- includes/SpecialPage.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 ); } /** -- 2.20.1