mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #6017] [MERGED] fix: resolve group permission conflicts with multiple groups #3703
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3703
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/6017
Author: @DasCanard
Created: 7/3/2025
Status: ✅ Merged
Merged: 7/25/2025
Merged by: @BlackDex
Base:
main← Head:main📝 Commits (5)
4bead95fix: resolve group permission conflicts with multiple groups518cc69Update src/api/core/ciphers.rs614c8befix: format3cffd0efix: restrict collection manage permissions to managers onlyf2a3bb7refactor: cipher permission logic to prioritize user access📊 Changes
3 files changed (+35 additions, -17 deletions)
View changed files
📝
src/api/core/ciphers.rs(+15 -5)📝
src/db/models/cipher.rs(+15 -9)📝
src/db/models/collection.rs(+5 -3)📄 Description
When a user belonged to multiple groups with different permissions for the same collection, only the permissions from one group were applied instead of combining them properly. This caused users to see incorrect access levels when initially viewing collection items.
The fix combines permissions from all user groups by taking the most permissive settings:
This ensures users immediately see the correct permissions when opening collection entries, matching the behavior after editing and saving.
resolves #5590
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.