Skip to content

Kirby 4.4.1

$sitepermissions->cannot()

Returns whether the current user is not allowed to do a certain action on the model

$sitepermissions->cannot(string $action, bool $default = true): bool

Parameters

Name Type Default Description
$action * string
$default bool true Will be returned if $action does not exist

Return type

bool

Parent class

Kirby\Cms\SitePermissions inherited from Kirby\Cms\ModelPermissions