From: Tim Starling Date: Sun, 15 Oct 2006 06:36:01 +0000 (+0000) Subject: Always grant access to Special:Userlogin, even if the user can't create an account... X-Git-Tag: 1.31.0-rc.0~55488 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7fdc65b97b361502ddcc24ef191724740fab2a6c;p=lhc%2Fweb%2Fwiklou.git 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. --- 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; }