From 1fce2e614bd728c475412f4ec36370ea62c368fd Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 11 Oct 2009 05:16:18 +0000 Subject: [PATCH] BUGFIX: Ensure that the index action works even if allowed_actions is set. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88521 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/RequestHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/control/RequestHandler.php b/core/control/RequestHandler.php index 648ac28e5..f9e50c03d 100755 --- a/core/control/RequestHandler.php +++ b/core/control/RequestHandler.php @@ -235,6 +235,8 @@ class RequestHandler extends ViewableData { function checkAccessAction($action) { $action = strtolower($action); $allowedActions = $this->allowedActions(); + + if($action == 'index') return true; if($allowedActions) { // check for specific action rules first, and fall back to global rules defined by asterisk