Skip to content

Kirby 6.0.0

$userPermissions->setting()

Resolves the permission rule for the user of the guards. Returns $default if no rule is defined for the action.

$userPermissions->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\UserPermissions inherited from Kirby\Guards\ModelPermissions