Skip to content

Kirby 3.7.5

UserRules::update()

Validates if the user can be updated

UserRules::update(Kirby\Cms\User $user, array $values = [ ], array $strings = [ ]): bool

Parameters

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

Return type

bool

Exceptions

Type Description
Kirby\Exception\PermissionException If the user it not allowed to update this user

Parent class

Kirby\Cms\UserRules