Forces respecting IsVisible on people

This commit is contained in:
LogicalPhallacy
2022-08-11 14:02:51 -07:00
committed by cvium
parent ba026716c1
commit de196a7687
3 changed files with 16 additions and 5 deletions

View File

@@ -98,7 +98,10 @@ namespace Jellyfin.Api.Controllers
Limit = limit ?? 0
});
return new QueryResult<BaseItemDto>(peopleItems.Select(person => _dtoService.GetItemByNameDto(person, dtoOptions, null, user)).ToArray());
return new QueryResult<BaseItemDto>(
peopleItems
.Select(person => _dtoService.GetItemByNameDto(person, dtoOptions, null, user))
.ToArray());
}
/// <summary>