$pagePermissions->may()
Non-throwing counterpart of ::ensure()
$pagePermissions->may(string $action, bool $default = false): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $actionrequired | string |
no default value | |
| $default | bool |
false
|
Used if no rule is defined for the action |
Return type
bool
Parent class
Kirby\Guards\PagePermissions
inherited from Kirby\Guards\ModelPermissions