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
@ -236,6 +236,8 @@ class RequestHandler extends ViewableData {
|
|||||||
$action = strtolower($action);
|
$action = strtolower($action);
|
||||||
$allowedActions = $this->allowedActions();
|
$allowedActions = $this->allowedActions();
|
||||||
|
|
||||||
|
if($action == 'index') return true;
|
||||||
|
|
||||||
if($allowedActions) {
|
if($allowedActions) {
|
||||||
// check for specific action rules first, and fall back to global rules defined by asterisk
|
// check for specific action rules first, and fall back to global rules defined by asterisk
|
||||||
foreach(array($action,'*') as $actionOrAll) {
|
foreach(array($action,'*') as $actionOrAll) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user