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:
Hamish Friedlander 2013-12-10 10:35:03 +13:00
parent d3838410e3
commit 050115f431

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