1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00

[EC-812] Fix broken EF update user groups query (#2479)

This commit is contained in:
Shane Melton 2022-12-08 07:41:46 -08:00 committed by GitHub
parent 6ef1863ad8
commit 328c2ca21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ public class GroupUserUpdateGroupsInsertQuery : IQuery<GroupUser>
on g.OrganizationId equals ou.OrganizationId on g.OrganizationId equals ou.OrganizationId
join gie in groupIdEntities join gie in groupIdEntities
on g.Id equals gie.Id on g.Id equals gie.Id
where !dbContext.GroupUsers.Any(gu => _groupIds.Contains(gu.GroupId) && gu.OrganizationUserId == _organizationUserId) where !dbContext.GroupUsers.Any(gu => gu.GroupId == gie.Id && gu.OrganizationUserId == _organizationUserId)
select g; select g;
return query.Select(x => new GroupUser return query.Select(x => new GroupUser
{ {