From cc09bb72cabfdca5df74f061e9ba7d8e8b74a1ef Mon Sep 17 00:00:00 2001 From: BlackDex Date: Tue, 21 Jan 2025 10:11:23 +0100 Subject: [PATCH] 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 --- src/api/core/organizations.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index d53d896f..bd4c1a77 100644 --- a/src/api/core/organizations.rs +++ b/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 = col_users .iter()