diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-04-22 00:57:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-21 10:57:35 -0600 |
| commit | 601c88c7046aa6bd30e291ffb0fcd3a91cf69b3e (patch) | |
| tree | b3f601c25df27ea462097fdc12a4b4f0740f5f76 | |
| parent | 89b798f8302fed167bb1a8d33ac88f886d35f613 (diff) | |
fix: don't apply whitelist tags to libraries (#11377)
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 5f9840b1b..c1d9ecbdf 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1602,6 +1602,12 @@ namespace MediaBrowser.Controller.Entities return false; } + var parent = GetParents().FirstOrDefault() ?? this; + if (parent is UserRootFolder) + { + return true; + } + var allowedTagsPreference = user.GetPreference(PreferenceKind.AllowedTags); if (allowedTagsPreference.Length != 0 && !allowedTagsPreference.Any(i => allTags.Contains(i, StringComparison.OrdinalIgnoreCase))) { |
