Browse Source

Merge pull request #1465 from colinin/fix-role-claim-mapping

fix(identity): Fix the role claims mapping
pull/1467/head
yx lin 2 months ago
committed by GitHub
parent
commit
fd6eeeed74
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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