mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
[EC-812] Fix broken EF update user groups query (#2479)
This commit is contained in:
parent
6ef1863ad8
commit
328c2ca21c
@ -36,7 +36,7 @@ public class GroupUserUpdateGroupsInsertQuery : IQuery<GroupUser>
|
||||
on g.OrganizationId equals ou.OrganizationId
|
||||
join gie in groupIdEntities
|
||||
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;
|
||||
return query.Select(x => new GroupUser
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user