mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
[EC-812] Fix broken EF update user groups query (#2479)
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user