Permalink
Browse files

Fixed bug with BasicAuth enabled on an old database, it was preventin…

…g you from visiting db/build

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50024 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 7779e1c commit 974238b296d3b361732a570f0a0e2a2268df562c @sminnee sminnee committed Feb 22, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 security/BasicAuth.php
View
@@ -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'])) {

0 comments on commit 974238b

Please sign in to comment.