[PR #6890] prevent managers from creating collections #3870

Open
opened 2026-03-03 10:38:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6890
Author: @stefan0xC
Created: 3/2/2026
Status: 🔄 Open

Base: mainHead: restrict-collection-creation


📝 Commits (1)

  • 0c0ac89 prevent 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.
image

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.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6890 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 3/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `restrict-collection-creation` --- ### 📝 Commits (1) - [`0c0ac89`](https://github.com/dani-garcia/vaultwarden/commit/0c0ac898378db96d0a30c1fb71646ce40a794365) prevent managers from creating collections ### 📊 Changes **2 files changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/organizations.rs` (+4 -4) 📝 `src/db/models/organization.rs` (+2 -1) </details> ### 📄 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. <img width="232" height="192" alt="image" src="https://github.com/user-attachments/assets/213b1182-4c9d-4813-b138-9c5bf93a6a5c" /> 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3870
No description provided.