Browse Source
Merge pull request #1452 from colinin/fix-type-mapping
fix: Fix type mapping
pull/1455/head
yx lin
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
aspnet-core/modules/identity/LINGYUN.Abp.Identity.Application/LINGYUN/Abp/Identity/IdentityUserAppService.cs
|
|
|
@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Identity; |
|
|
|
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 class IdentityUserAppService : IdentityAppServiceBase, IIdentityUserAppSe |
|
|
|
{ |
|
|
|
var user = await UserManager.GetByIdAsync(id); |
|
|
|
|
|
|
|
return new ListResultDto<IdentityClaimDto>(ObjectMapper.Map<ICollection<IdentityUserClaim>, List<IdentityClaimDto>>(user.Claims)); |
|
|
|
return new ListResultDto<IdentityClaimDto>(ObjectMapper.Map<List<IdentityUserClaim>, List<IdentityClaimDto>>(user.Claims.ToList())); |
|
|
|
} |
|
|
|
|
|
|
|
[Authorize(IdentityPermissions.Users.ManageClaims)] |
|
|
|
|