Edit UserSrvice. UserRolesDto in UserDto is 1 level of nesting

This commit is contained in:
Фролов 2022-03-01 09:51:16 +05:00
parent 45cce481ee
commit 7b8cbb71be
2 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ namespace AsbCloudInfrastructure.Services
var roles = cacheRelationUserToRoles.Where(r => r.IdUser == idUser);
if (roles?.Any() != true)
return null;
return roles.SelectMany(r => RoleService.GetNestedById(r.IdUserRole));
return roles.SelectMany(r => RoleService.GetNestedById(r.IdUserRole, 0));
}
public IEnumerable<PermissionDto> GetNestedPermissions(int idUser)