mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-04-08 02:55:11 -05:00
Allow all manager to create collections again
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 Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
parent
663f88e717
commit
814f6d4dc2
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ impl Membership {
|
|||
"familySponsorshipValidUntil": null,
|
||||
"familySponsorshipToDelete": null,
|
||||
"accessSecretsManager": false,
|
||||
"limitCollectionCreation": true,
|
||||
"limitCollectionCreation": self.atype < MembershipType::Manager, // If less then a manager return true, to limit collection creations
|
||||
"limitCollectionCreationDeletion": true,
|
||||
"limitCollectionDeletion": true,
|
||||
"allowAdminAccessToAllCollectionItems": true,
|
||||
|
|
Loading…
Add table
Reference in a new issue