fixed logic in HasAccessToQueue. If we receive a null response from IsVisibleStandalone then it should be false

This commit is contained in:
Christopher Young
2025-09-30 12:27:25 -06:00
parent 4849486fa0
commit d6a1c8413c

View File

@@ -206,7 +206,7 @@ namespace Emby.Server.Implementations.SyncPlay
foreach (var itemId in queue)
{
var item = _libraryManager.GetItemById(itemId);
if (!item.IsVisibleStandalone(user))
if (!item?.IsVisibleStandalone(user) ?? false)
{
return false;
}