FileRules::update()
Validates if the file can be updated
FileRules::update(Kirby\Cms\File $file, array $content = [ ]): void
Parameters
| Name | Type | Default |
|---|---|---|
| $filerequired | Kirby\Cms\File |
no default value |
| $content | array |
[ ]
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to update the file |