Skip to content

Kirby 5.0.4

UserRules::changeEmail()

Validates if the email address can be changed

UserRules::changeEmail(Kirby\Cms\User $user, string $email): void

Parameters

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

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to change the address

Parent class

Kirby\Cms\UserRules