1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-06-02 05:48:59 +02:00

fix: wrong organization group membership detection

Dieser Commit ist enthalten in:
Matlink 2024-01-04 19:22:54 +01:00 committet von Matlink
Ursprung 704d9bde1e
Commit 7bc45a04f7

Datei anzeigen

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