Skip to content

Commit 6af3c5b

Browse files
Resolve #285 - Removed permissions remain checked in Angular UI
1 parent dcbb214 commit 6af3c5b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,15 @@ protected virtual void CheckErrors(IdentityResult identityResult)
111111
{
112112
identityResult.CheckErrors(LocalizationManager);
113113
}
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+
}
114124
}
115125
}

0 commit comments

Comments
 (0)