Strangely, extension special pages are not allowed (you don't have permission ''...
[lhc/web/wiklou.git] / includes / SpecialPage.php
index 3a52f85..8ab7a41 100644 (file)
@@ -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 );
+               }
        }
 
        /**