mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Allow managers to create self-assigned collections (#1672)
This commit is contained in:
@ -292,7 +292,7 @@ namespace Bit.Core.Context
|
||||
|
||||
public async Task<bool> CreateNewCollections(Guid orgId)
|
||||
{
|
||||
return await OrganizationAdmin(orgId) || (Organizations?.Any(o => o.Id == orgId
|
||||
return await OrganizationManager(orgId) || (Organizations?.Any(o => o.Id == orgId
|
||||
&& (o.Permissions?.CreateNewCollections ?? false)) ?? false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user