Skip to content

Kirby 5.4.0

UserRules::deleteAvatar()

Validates if the avatar for the user can be deleted

UserRules::deleteAvatar(Kirby\Cms\User $user): void

Parameters

Name Type Default
$userrequired Kirby\Cms\User no default value

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to delete this user's avatar

Parent class

Kirby\Cms\UserRules