mirror of
https://github.com/bitwarden/server
synced 2026-02-25 17:03:22 +00:00
[PM-30327] Fix SingleOrg policy not revoking non-compliant users (#7001)
This commit is contained in:
@@ -407,7 +407,7 @@ public class OrganizationUserRepository : Repository<Core.Entities.OrganizationU
|
||||
{
|
||||
var dbContext = GetDatabaseContext(scope);
|
||||
var query = from ou in dbContext.OrganizationUsers
|
||||
where userIds.Contains(ou.Id)
|
||||
where ou.UserId.HasValue && userIds.Contains(ou.UserId.Value)
|
||||
select ou;
|
||||
return Mapper.Map<List<Core.Entities.OrganizationUser>>(await query.ToListAsync());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user