Browse Source

fix(identity): Fix the role claims mapping

pull/1465/head
colin 5 months ago
parent
commit
87423495c9
  1. 2
      aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityRoleAppService.cs

2
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<IdentityClaimDto>(ObjectMapper.Map<ICollection<IdentityRoleClaim>, List<IdentityClaimDto>>(role.Claims));
return new ListResultDto<IdentityClaimDto>(ObjectMapper.Map<List<IdentityRoleClaim>, List<IdentityClaimDto>>(role.Claims.ToList()));
}
[Authorize(IdentityPermissions.Roles.ManageClaims)]

Loading…
Cancel
Save