UserRules::changeName()
Validates if the name can be changed
UserRules::changeName(Kirby\Cms\User $user, string $name): void
Parameters
| Name | Type | Default |
|---|---|---|
| $userrequired | Kirby\Cms\User |
no default value |
| $namerequired | string |
no default value |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to change the name |