From 0f62170ed71476b62fdae9ee6e1cb162c73b3655 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sun, 16 Jul 2006 15:43:41 +0000 Subject: [PATCH] Strangely, extension special pages are not allowed (you don't have permission ''), although User::userCan checks for empty string; partial revert. --- includes/SpecialPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); + } } /** -- 2.20.1