Skip to content

Kirby 4.4.1

$user->roles()

Returns all available roles for this user, that can be selected by the authenticated user

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

Return type

Kirby\Cms\Roles

Parent class

Kirby\Cms\User