mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS allowed_actions access control (#5333)
This commit is contained in:
parent
69858760e1
commit
1f820b0b1c
@ -30,7 +30,7 @@ directly calling methods that they shouldn't.
|
||||
'cmsrestrictedaction' => 'CMS_ACCESS_CMSMain',
|
||||
|
||||
// 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' => '->canComplexAction("MyRestrictedAction", false, 42)',
|
||||
@ -200,4 +200,4 @@ execution. This behavior can be used to implement permission checks.
|
||||
|
||||
## API Documentation
|
||||
|
||||
* [api:Controller]
|
||||
* [api:Controller]
|
||||
|
Loading…
Reference in New Issue
Block a user