Skip to content

Kirby 5.4.0

$user->roles()

Returns the roles that the authenticated user may assign to this user via a role change.

$user->roles(): Kirby\Cms\Roles

Return type

Kirby\Cms\Roles

This method modifies the existing $user object it is applied to and returns it again.

Parent class

Kirby\Cms\User