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 2ab2fb8263..b463cd6497 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 @@ -140,11 +140,6 @@ namespace Volo.Abp.Identity.EntityFrameworkCore Guid? organizationUnitId = null, CancellationToken cancellationToken = default) { - if(roleId.HasValue || organizationUnitId.HasValue) - { - includeDetails = true; - } - return await (await GetDbSetAsync()) .IncludeDetails(includeDetails) .WhereIf(