From 9a258c089dcbc68b12fe63479542fc7158ec7a10 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Tue, 28 Jul 2026 20:41:21 +0200 Subject: Restrict people, genres, studios and artists to names backed by an item the user can access --- MediaBrowser.Controller/Entities/InternalItemsQuery.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'MediaBrowser.Controller/Entities/InternalItemsQuery.cs') diff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs index 3b1f6a961f..e85f86b72f 100644 --- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs +++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs @@ -496,6 +496,12 @@ namespace MediaBrowser.Controller.Entities public IReadOnlyList SubtitleLanguages { get; set; } + /// + /// Gets a value indicating whether some content in the library is hidden from . + /// Filters that only exist to hide content can be skipped entirely when this is false. + /// + public bool UserHasContentRestrictions { get; private set; } + public void SetUser(User user) { var maxRating = user.MaxParentalRatingScore; @@ -519,6 +525,7 @@ namespace MediaBrowser.Controller.Entities .Select(tag => tag.RemoveDiacritics().ToLowerInvariant()) .ToArray(); + UserHasContentRestrictions = user.HasContentRestrictions(); User = user; } -- cgit v1.2.3