mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
7779e1c2b0
commit
974238b296
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user