From 7bc45a04f7024bf6d662df3faf67d2cebe142011 Mon Sep 17 00:00:00 2001 From: Matlink Date: Thu, 4 Jan 2024 19:22:54 +0100 Subject: [PATCH] fix: wrong organization group membership detection --- src/api/core/organizations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 77457885..282da507 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -364,8 +364,8 @@ async fn get_org_collections_details(org_id: &str, headers: ManagerHeadersLoose, // if current user is in any collection-assigned group // or in a group having access to all collections - // or itself has access to all collections - assigned = !assigned && has_collection_access_via_group.contains(&user_org.uuid); + // or itself has access to all collections + assigned = assigned || has_collection_access_via_group.contains(&user_org.uuid); let mut json_object = col.to_json(); json_object["Assigned"] = json!(assigned);