Always grant access to Special:Userlogin, even if the user can't create an account...
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 15 Oct 2006 06:36:01 +0000 (06:36 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 15 Oct 2006 06:36:01 +0000 (06:36 +0000)
includes/Title.php

index 03489b5..acc4b89 100644 (file)
@@ -1160,10 +1160,11 @@ class Title {
                } else {
                        global $wgWhitelistRead;
 
-                       /** If anon users can create an account,
-                           they need to reach the login page first! */
-                       if( $wgUser->isAllowed( 'createaccount' )
-                           && $this->getNamespace() == NS_SPECIAL
+                       /** 
+                        * Always grant access to the login page.
+                        * Even anons need to be able to log in.
+                       */
+                       if( $this->getNamespace() == NS_SPECIAL
                            && $this->getText() == 'Userlogin' ) {
                                return true;
                        }