$sitePermissions->setting()
Resolves the permission rule for the user of the guards. Returns $default if no rule is defined for the action.
$sitePermissions->setting(string $action, bool|null $default = null): bool|null
Parameters
| Name | Type | Default |
|---|---|---|
| $actionrequired | string |
no default value |
| $default | boolornull |
null
|
Return types
boolornull
Parent class
Kirby\Guards\SitePermissions
inherited from Kirby\Guards\ModelPermissions