mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
#182 - Eliminate duplicates in the selection list for max rating in user screen
This commit is contained in:
@@ -849,10 +849,15 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
if (user == null)
|
||||
{
|
||||
throw new ArgumentNullException();
|
||||
throw new ArgumentNullException("user");
|
||||
}
|
||||
|
||||
return user.Configuration.MaxParentalRating == null || Ratings.Level(CustomRating ?? OfficialRating) <= user.Configuration.MaxParentalRating;
|
||||
if (string.IsNullOrEmpty(user.Configuration.MaxParentalRating))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return Ratings.Level(CustomRating ?? OfficialRating) <= Ratings.Level(user.Configuration.MaxParentalRating);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user