From 87423495c9969327509775e6711f39792b7fbcad Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 1 Apr 2026 11:04:23 +0800 Subject: [PATCH] fix(identity): Fix the role claims mapping --- .../LINGYUN/Abp/Identity/IdentityRoleAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs index 620ba57bd..4df4ff583 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs @@ -72,7 +72,7 @@ public class IdentityRoleAppService : IdentityAppServiceBase, IIdentityRoleAppSe { var role = await IdentityRoleRepository.GetAsync(id); - return new ListResultDto(ObjectMapper.Map, List>(role.Claims)); + return new ListResultDto(ObjectMapper.Map, List>(role.Claims.ToList())); } [Authorize(IdentityPermissions.Roles.ManageClaims)]