Reorder and check for query user null to avoid null ref issues

pull/8399/head
LogicalPhallacy 2 years ago committed by cvium
parent de196a7687
commit 2920c52d61

@ -2779,8 +2779,10 @@ namespace Emby.Server.Implementations.Library
return null;
}
})
.Where(i => i.IsVisible(query.User))
.Where(i => i != null)
.Where(i => query.User == null ?
true :
i.IsVisible(query.User))
.ToList();
}

Loading…
Cancel
Save