mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
557ec1e3b3
commit
1fce2e614b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user