$filePermissions->can()
Returns whether the current user is allowed to do a certain action on the model
$filePermissions->can(string $action, bool $default = false): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$actionrequired | string |
no default value | |
$default | bool |
false
|
Will be returned if $action does not exist |
Return type
bool
Parent class
Kirby\Cms\FilePermissions
inherited from Kirby\Cms\ModelPermissions