forked from ddrilling/AsbCloudServer
Edit UserSrvice. UserRolesDto in UserDto is 1 level of nesting
This commit is contained in:
parent
45cce481ee
commit
7b8cbb71be
@ -135,7 +135,7 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
var roles = cacheRelationUserToRoles.Where(r => r.IdUser == idUser);
|
var roles = cacheRelationUserToRoles.Where(r => r.IdUser == idUser);
|
||||||
if (roles?.Any() != true)
|
if (roles?.Any() != true)
|
||||||
return null;
|
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)
|
public IEnumerable<PermissionDto> GetNestedPermissions(int idUser)
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user