Derives the identity role key from the user's role, with the same checks the profile view uses: isOwnerRole / isAthleteRole (role id, falling back to the key). Every other role (coach, administrator, unknown) reads as "coach".
isOwnerRole
isAthleteRole
"coach"
Derives the identity role key from the user's role, with the same checks the profile view uses:
isOwnerRole/isAthleteRole(role id, falling back to the key). Every other role (coach, administrator, unknown) reads as"coach".