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:
Will Rossiter 2014-02-07 14:49:33 +13:00
commit 9bfd1d3a5d

View File

@ -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) {