DOCS allowed_actions access control (#5333)

This commit is contained in:
Michael Strong 2016-04-18 17:49:30 +12:00 committed by Sam Minnée
parent 69858760e1
commit 1f820b0b1c

View File

@ -30,7 +30,7 @@ directly calling methods that they shouldn't.
'cmsrestrictedaction' => 'CMS_ACCESS_CMSMain', 'cmsrestrictedaction' => 'CMS_ACCESS_CMSMain',
// complexaction can only be accessed if $this->canComplexAction() returns true. // complexaction can only be accessed if $this->canComplexAction() returns true.
'complexaction' '->canComplexAction' 'complexaction' => '->canComplexAction',
// complexactioncheck can only be accessed if $this->canComplexAction("MyRestrictedAction", false, 42) is true. // complexactioncheck can only be accessed if $this->canComplexAction("MyRestrictedAction", false, 42) is true.
'complexactioncheck' => '->canComplexAction("MyRestrictedAction", false, 42)', 'complexactioncheck' => '->canComplexAction("MyRestrictedAction", false, 42)',
@ -200,4 +200,4 @@ execution. This behavior can be used to implement permission checks.
## API Documentation ## API Documentation
* [api:Controller] * [api:Controller]