Permalink
Browse files

FIX Dont pop up basic auth dialog when trying to flush and isDev=1, j…

…ust redirect to Security/login like normal
  • Loading branch information...
1 parent ed4d325 commit 82f65fded492cce7735fc99fbd03c6306117e53e Hamish Friedlander committed with chillu Dec 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.php
View
@@ -132,7 +132,7 @@
// 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) {

0 comments on commit 82f65fd

Please sign in to comment.