Browse Source

fix: wrong organization group membership detection

pull/3754/head
Matlink 2 years ago
committed by Matlink
parent
commit
7bc45a04f7
  1. 4
      src/api/core/organizations.rs

4
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);

Loading…
Cancel
Save