1
0
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:
Matt Gibson
2021-10-27 13:06:23 -05:00
committed by GitHub
parent 52d1bade06
commit cb815c2f14
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}