Skip to content

Kirby 6.0.0

$userValidators->validateRole()

Validates that the role exists at all. This does not check if the currently authenticated user is allowed to give it to someone. Use ::validateAssignableRole() for that.

$userValidators->validateRole(string $role): void

Parameters

Name Type Default
$rolerequired string no default value

Parent class

Kirby\Guards\UserValidators