fix: don't apply whitelist tags to libraries (#11377)
This commit is contained in:
parent
89b798f830
commit
601c88c704
|
@ -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…
Reference in New Issue
Block a user