Reverting the revert, the problem was an error in the extension.
authorRotem Liss <rotem@users.mediawiki.org>
Sun, 16 Jul 2006 16:10:41 +0000 (16:10 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sun, 16 Jul 2006 16:10:41 +0000 (16:10 +0000)
includes/SpecialPage.php

index 8ab7a41..3a52f85 100644 (file)
@@ -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 );
        }
 
        /**