update other parental control option

This commit is contained in:
Luke Pulverenti 2017-05-14 22:28:32 -04:00
parent 2f4f8c105e
commit 5e994eabd5
2 changed files with 2 additions and 10 deletions

View file

@ -251,7 +251,7 @@ namespace MediaBrowser.Controller.Entities
if (policy.MaxParentalRating.HasValue) if (policy.MaxParentalRating.HasValue)
{ {
BlockUnratedItems = policy.BlockUnratedItems; BlockUnratedItems = policy.BlockUnratedItems.Where(i => i != UnratedItem.Other).ToArray();
} }
ExcludeInheritedTags = policy.BlockedTags; ExcludeInheritedTags = policy.BlockedTags;

View file

@ -1,7 +1,4 @@
using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Serialization;
using MediaBrowser.Model.Users;
using System.Linq;
using MediaBrowser.Model.Serialization;
namespace MediaBrowser.Controller.Entities namespace MediaBrowser.Controller.Entities
{ {
@ -24,10 +21,5 @@ namespace MediaBrowser.Controller.Entities
return false; return false;
} }
} }
protected override bool GetBlockUnratedValue(UserPolicy config)
{
return config.BlockUnratedItems.Contains(UnratedItem.Other);
}
} }
} }