Skip to content

Kirby 3.9.8

$user->changeRole()

Changes the user role

$user->changeRole(string $role): Kirby\Cms\User

Parameters

Name Type Default
$role * string

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User