From 7fdc65b97b361502ddcc24ef191724740fab2a6c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 15 Oct 2006 06:36:01 +0000 Subject: [PATCH] Always grant access to Special:Userlogin, even if the user can't create an account. Creating an account isn't the only thing Special:Userlogin is for. --- includes/Title.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 03489b5303..acc4b89e36 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; } -- 2.20.1