From 601c88c7046aa6bd30e291ffb0fcd3a91cf69b3e Mon Sep 17 00:00:00 2001 From: gnattu Date: Mon, 22 Apr 2024 00:57:35 +0800 Subject: [PATCH] fix: don't apply whitelist tags to libraries (#11377) --- MediaBrowser.Controller/Entities/BaseItem.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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))) {