mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2830 from hafriedlander/fix/flush
FIX Dont pop up basic auth dialog when trying to flush and isDev=1
This commit is contained in:
commit
9bfd1d3a5d
2
main.php
2
main.php
@ -134,7 +134,7 @@ $chain
|
||||
// Then if a flush was requested, redirect to it
|
||||
if ($token->parameterProvided() && !$token->tokenProvided()) {
|
||||
// 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
|
||||
if (!$canFlush) {
|
||||
|
Loading…
Reference in New Issue
Block a user