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

pull/11394/head
gnattu 2 months ago committed by GitHub
parent 89b798f830
commit 601c88c704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save