mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #6878] fix: grant manage permission to Manager on collection creation #3865
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#3865
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/6878
Author: @rafaelfariasbsb
Created: 2/26/2026
Status: 🔄 Open
Base:
main← Head:fix/manager-collection-manage-permission📝 Commits (1)
541ea01fix: grant manage permission to Manager on collection creation📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/api/core/organizations.rs(+1 -1)📄 Description
Summary
access_allcould create a new collection but was unable to edit it afterwardCollectionUserrecord was being saved withmanage=false, causing theManagerHeadersguard to reject edit requests with "The current user isn't a manager for this collection"manageparameter fromfalsetotruewhen saving theCollectionUserfor the creating ManagerDetails
In
src/api/core/organizations.rs(line 524), the collection creation endpoint saves aCollectionUserentry for the Manager:The last parameter (
manage) wasfalse, so subsequent calls toCollection::is_coll_manageable_by_user()via theManagerHeadersguard would fail since:users_collections.manageisfalseaccess_allisfalse(condition to enter this code block)This was not reproduced when testing with a Manager that had
Manage all collectionsenabled, becauseaccess_all=truebypasses this code path entirely.Test plan
Manage all collectionsFixes #6871
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.