From 89a429c6a5da90bfe9505259a69deef01443ac2b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 12 Dec 2013 01:08:29 +0100 Subject: [PATCH] Don't require authentication for "test" environments We use testsession to build up test state e.g. for checking logins, so having an admin logged-in to operate the testsession controller is counterproductive. --- code/TestSessionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/TestSessionController.php b/code/TestSessionController.php index 38775e4..266022a 100644 --- a/code/TestSessionController.php +++ b/code/TestSessionController.php @@ -21,7 +21,7 @@ class TestSessionController extends Controller { $canAccess = ( !Director::isLive() - && (Director::isDev() || Director::is_cli() || Permission::check("ADMIN")) + && (Director::isDev() || Director::isTest() || Director::is_cli() || Permission::check("ADMIN")) ); if(!$canAccess) return Security::permissionFailure($this); }