mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
update other parental control option
This commit is contained in:
parent
2f4f8c105e
commit
5e994eabd5
2 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue