diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs index 621b28471..14c958877 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs @@ -3,6 +3,7 @@ using Microsoft.Extensions.Options; using System; using System.Collections.Generic; +using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Volo.Abp; @@ -62,7 +63,7 @@ public async virtual Task> GetClaimsAsync(Guid i { var user = await UserManager.GetByIdAsync(id); - return new ListResultDto(ObjectMapper.Map, List>(user.Claims)); + return new ListResultDto(ObjectMapper.Map, List>(user.Claims.ToList())); } [Authorize(IdentityPermissions.Users.ManageClaims)]