mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 23:13:06 +03:00
Validate item access (#11171)
This commit is contained in:
@@ -211,7 +211,7 @@ public class SearchController : BaseJellyfinApiController
|
||||
|
||||
if (!item.ChannelId.IsEmpty())
|
||||
{
|
||||
var channel = _libraryManager.GetItemById(item.ChannelId);
|
||||
var channel = _libraryManager.GetItemById<BaseItem>(item.ChannelId);
|
||||
result.ChannelName = channel?.Name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user