$pagePermissions->cannot()
Returns whether the current user is not allowed to do a certain action on the model
$pagePermissions->cannot(string $action, bool $default = true): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $actionrequired | string |
no default value | |
| $default | bool |
true
|
Will be returned if $action does not exist |
Return type
bool
This method modifies the existing $pagepermissions object it is applied to and returns it again.
Parent class
Kirby\Cms\PagePermissions
inherited from Kirby\Cms\ModelPermissions