From 75d679a2db2a9f002111c634a6e9dd6aa56bf537 Mon Sep 17 00:00:00 2001 From: Mansur Besleney <84874279+MansurBesleney@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:44:16 +0300 Subject: [PATCH] Update EfCoreIdentityUserRepository.cs --- .../EfCoreIdentityUserRepository.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs index 002261df46..a623894625 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs @@ -456,6 +456,11 @@ public class EfCoreIdentityUserRepository : EfCoreRepository x.Id == id); + } if (roleId.HasValue) { @@ -464,11 +469,6 @@ public class EfCoreIdentityUserRepository : EfCoreRepository identityUser.Roles.Any(x => x.RoleId == roleId.Value) || identityUser.OrganizationUnits.Any(x => organizationUnitIds.Contains(x.OrganizationUnitId))); } - if (id.HasValue) - { - return query.Where(x => x.Id == id); - } - return query .WhereIf( !filter.IsNullOrWhiteSpace(),