fix: don't apply whitelist tags to libraries (#11377)

This commit is contained in:
gnattu 2024-04-22 00:57:35 +08:00 committed by GitHub
parent 89b798f830
commit 601c88c704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)))
{