Browse Source

Fix an issue with access_all

If owners or admins do not have the `access_all` flag set, in case they do not want to see all collection on the password manager view, they didn't see any collections at all anymore.

This should fix that they are still able to view all the collections and have access to it.

Signed-off-by: BlackDex <black.dex@gmail.com>
pull/5386/head
BlackDex 3 months ago
parent
commit
cc09bb72ca
No known key found for this signature in database GPG Key ID: 58C80A2AA6C765E1
  1. 5
      src/api/core/organizations.rs

5
src/api/core/organizations.rs

@ -364,11 +364,6 @@ async fn get_org_collections_details(
|| (CONFIG.org_groups_enabled()
&& GroupUser::has_access_to_collection_by_member(&col.uuid, &member.uuid, &mut conn).await);
// Not assigned collections should not be returned
if !assigned {
continue;
}
// get the users assigned directly to the given collection
let users: Vec<Value> = col_users
.iter()

Loading…
Cancel
Save