$sitePermissions->may()
Non-throwing counterpart of ::ensure()
$sitePermissions->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\SitePermissions
inherited from Kirby\Guards\ModelPermissions