diff --git a/api/src/routes/rest/routes/users/assets/list_attributes.rs b/api/src/routes/rest/routes/users/assets/list_attributes.rs index 92508692e..476a2321d 100644 --- a/api/src/routes/rest/routes/users/assets/list_attributes.rs +++ b/api/src/routes/rest/routes/users/assets/list_attributes.rs @@ -56,7 +56,7 @@ async fn list_attributes_handler(user: User, user_id: Uuid) -> Result return Err(anyhow::anyhow!("User organization id not found")), }; - let auth_user_role = match user.attributes.get("role") { + let auth_user_role = match user.attributes.get("organization_role") { Some(Value::String(role)) => role, Some(_) => return Err(anyhow::anyhow!("User role not found")), None => return Err(anyhow::anyhow!("User role not found")), @@ -86,10 +86,17 @@ async fn list_attributes_handler(user: User, user_id: Uuid) -> Result