mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #6890] prevent managers from creating collections #3870
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#3870
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/6890
Author: @stefan0xC
Created: 3/2/2026
Status: 🔄 Open
Base:
main← Head:restrict-collection-creation📝 Commits (1)
0c0ac89prevent managers from creating collections📊 Changes
2 files changed (+6 additions, -5 deletions)
View changed files
📝
src/api/core/organizations.rs(+4 -4)📝
src/db/models/organization.rs(+2 -1)📄 Description
managers without the access_all flag should not be able to create collections. the manage all permission consists of three separate custom permission which would need to be properly implemented first for more delegate control.

this should fix #6871 for now by both preventing managers from creating collections as well as restricting the api call for managers to the ones that have access to all collections in order to prevent permission errors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.