Skip to content

Commit

Permalink
Fix an issue with access_all
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
BlackDex committed Jan 21, 2025
1 parent 07e4813 commit cc09bb7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cc09bb7

Please sign in to comment.