1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Permissions bugs (#1083)

* Null checked org invite collections

* Null checked permissions on org invite

* Gave a static seat count to org invite fixture

* Null checked the right way
This commit is contained in:
Addison Beck
2021-01-13 15:14:28 -05:00
committed by GitHub
parent 96cc88aafc
commit 9f938f5efd
4 changed files with 29 additions and 5 deletions

View File

@ -20,7 +20,7 @@ namespace Bit.Core.Models.Business
Emails = requestModel.Emails;
Type = requestModel.Type.Value;
AccessAll = requestModel.AccessAll;
Collections = requestModel.Collections.Select(c => c.ToSelectionReadOnly());
Collections = requestModel.Collections?.Select(c => c.ToSelectionReadOnly());
Permissions = requestModel.Permissions;
}
}