mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Dont pop up basic auth dialog when trying to flush and isDev=1, just redirect to Security/login like normal
This commit is contained in:
parent
ed4d32581d
commit
82f65fded4
2
main.php
2
main.php
@ -132,7 +132,7 @@ $chain
|
|||||||
// Then if a flush was requested, redirect to it
|
// Then if a flush was requested, redirect to it
|
||||||
if ($token->parameterProvided() && !$token->tokenProvided()) {
|
if ($token->parameterProvided() && !$token->tokenProvided()) {
|
||||||
// First, check if we're in dev mode, or the database doesn't have any security data
|
// First, check if we're in dev mode, or the database doesn't have any security data
|
||||||
$canFlush = Director::isDev() || !Security::database_is_ready();
|
$canFlush = Director::isDev(true) || !Security::database_is_ready();
|
||||||
|
|
||||||
// Otherwise, we start up the session if needed, then check for admin
|
// Otherwise, we start up the session if needed, then check for admin
|
||||||
if (!$canFlush) {
|
if (!$canFlush) {
|
||||||
|
Loading…
Reference in New Issue
Block a user