Skip to content

Kirby 5.1.1

$user->roles()

Returns all available roles for this user, that the authenticated user can change to.

$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