Fixed bug with BasicAuth enabled on an old database, it was preventing you from visiting db/build

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50024 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-02-22 03:59:16 +00:00
parent 7779e1c2b0
commit 974238b296

View File

@ -17,6 +17,7 @@ class BasicAuth extends Object {
*/
static function requireLogin($realm, $permissionCode) {
if(self::$disabled) return true;
if(!Security::database_is_ready()) return true;
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {