Skip to content

Kirby 3.6.6

UserRules::changeEmail()

Validates if the email address can be changed

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

Parameters

Name Type Default
$user * Kirby\Cms\User
$email * string

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\UserRules