Skip to main content

get_user_roles

Function get_user_roles 

Source
pub async fn get_user_roles(
    user_id: Path<Uuid>,
    pool: Data<PgPool>,
    auth_user: AuthUser,
) -> ControllerResult<Json<Vec<Role>>>
Expand description

GET /api/v0/main-frontend/users/:id/roles - All roles held by a user, across scopes. Teacher/admin (global) view; used to label the account (e.g. staff/teacher) on the user-details page.