mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 17:23:04 +03:00
[PR #4441] [MERGED] improve access to collections via groups #2821
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4441
Author: @stefan0xC
Created: 3/19/2024
Status: ✅ Merged
Merged: 4/27/2024
Merged by: @dani-garcia
Base:
main← Head:fix-groups📝 Commits (3)
6ebaa4brefactor get_org_collections_details7890f58improve access to collection checkebddabdfix get_org_collection_detail too📊 Changes
3 files changed (+23 additions, -41 deletions)
View changed files
📝
src/api/core/organizations.rs(+7 -23)📝
src/auth.rs(+2 -6)📝
src/db/models/collection.rs(+14 -12)📄 Description
I've refactored the check if a user has access to a collection so it also takes into account access via groups (but only if
ORG_GROUPS_ENABLED=true).This should also return the correct result for
get_org_collection_detail(though I'm not sure if this is used by the client).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.