FileRules::delete()
Validates if the file can be deleted
Parameters
Name | Type | Default |
---|---|---|
$file * | Kirby\Cms\File |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to delete the file |