We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbb214 commit 6af3c5bCopy full SHA for 6af3c5b
aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs
@@ -111,5 +111,15 @@ protected virtual void CheckErrors(IdentityResult identityResult)
111
{
112
identityResult.CheckErrors(LocalizationManager);
113
}
114
+
115
+ public override async Task<RoleDto> Get(EntityDto<int> input)
116
+ {
117
+ CheckGetPermission();
118
119
+ var role = await GetEntityByIdAsync(input.Id);
120
+ role.Permissions = role.Permissions.Where(p => p.IsGranted).ToList();
121
122
+ return MapToEntityDto(role);
123
+ }
124
125
0 commit comments