Skip to content

Kirby 4.5.0

$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

Parent class

Kirby\Cms\User