1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-12 08:38:13 -05:00

Fix error if user has access to all collections (#1774)

This commit is contained in:
Thomas Rittson 2021-12-20 15:28:07 +10:00 committed by GitHub
parent 5a8f334550
commit cf5f2bf249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ namespace Bit.Api.Models.Request.Organizations
Emails = Emails,
Type = Type,
AccessAll = AccessAll,
Collections = Collections.Select(c => c.ToSelectionReadOnly()),
Collections = Collections?.Select(c => c.ToSelectionReadOnly()),
Permissions = Permissions,
};
}