From 347830df9d8baeca2807f46131fca7188c8c3785 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 25 Mar 2026 15:33:17 +0800 Subject: [PATCH] fix: Fix type mapping --- .../LINGYUN/Abp/Identity/IdentityUserAppService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)]