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
This commit is contained in:
Sam Minnee 2009-10-11 05:16:18 +00:00
parent 557ec1e3b3
commit 1fce2e614b

View File

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