This commit checks if the member is a manager or better, and if so allows it to createCollections. We actually check if it is less then a Manager, since the limitCollectionCreation should be set to false to allow it and true to prevent.
🔄 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/5488
**Author:** [@BlackDex](https://github.com/BlackDex)
**Created:** 1/28/2025
**Status:** ✅ Merged
**Merged:** 1/29/2025
**Merged by:** [@dani-garcia](https://github.com/dani-garcia)
**Base:** `main` ← **Head:** `allow-managers-to-create-collections`
---
### 📝 Commits (2)
- [`814f6d4`](https://github.com/dani-garcia/vaultwarden/commit/814f6d4dc2fc3e0140ce32253bd09ae021eca59b) Allow all manager to create collections again
- [`692967f`](https://github.com/dani-garcia/vaultwarden/commit/692967f64057365bee2ad0c440e5044a286be181) Fix some small issues
### 📊 Changes
**3 files changed** (+19 additions, -15 deletions)
<details>
<summary>View changed files</summary>
📝 `src/api/core/organizations.rs` (+14 -13)
📝 `src/db/models/collection.rs` (+4 -1)
📝 `src/db/models/organization.rs` (+1 -1)
</details>
### 📄 Description
This commit checks if the member is a manager or better, and if so allows it to createCollections. We actually check if it is less then a Manager, since the `limitCollectionCreation` should be set to false to allow it and true to prevent.
This should fix an issue discussed in #5484
Fixes #5489
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/5488
Author: @BlackDex
Created: 1/28/2025
Status: ✅ Merged
Merged: 1/29/2025
Merged by: @dani-garcia
Base:
main← Head:allow-managers-to-create-collections📝 Commits (2)
814f6d4Allow all manager to create collections again692967fFix some small issues📊 Changes
3 files changed (+19 additions, -15 deletions)
View changed files
📝
src/api/core/organizations.rs(+14 -13)📝
src/db/models/collection.rs(+4 -1)📝
src/db/models/organization.rs(+1 -1)📄 Description
This commit checks if the member is a manager or better, and if so allows it to createCollections. We actually check if it is less then a Manager, since the
limitCollectionCreationshould be set to false to allow it and true to prevent.This should fix an issue discussed in #5484
Fixes #5489
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.