mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-09 04:32:44 -05:00
[PR #6890] prevent managers from creating collections #7499
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/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.