Skip to content

Kirby 3.6.6

UserRules::create()

Validates if the user can be created

UserRules::create(Kirby\Cms\User $user, array $props = [ ]): bool

Parameters

Name Type Default
$user * Kirby\Cms\User
$props array [ ]

Return type

bool

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to create a new user

Parent class

Kirby\Cms\UserRules