UserRules::create()
Validates if the user can be created
UserRules::create(Kirby\Cms\User $user, array $props = [ ]): void
Parameters
Name | Type | Default |
---|---|---|
$userrequired | Kirby\Cms\User |
no default value |
$props | array |
[ ]
|
Exceptions
Type | Description |
---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to create a new user |