Pārlūkot izejas kodu

Properly handle ratings for which we can't determine a value

Eric Reed 9 gadi atpakaļ
vecāks
revīzija
3aa1aff371
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      MediaBrowser.Controller/Entities/BaseItem.cs

+ 1 - 1
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -1109,7 +1109,7 @@ namespace MediaBrowser.Controller.Entities
             // Could not determine the integer value
             // Could not determine the integer value
             if (!value.HasValue)
             if (!value.HasValue)
             {
             {
-                return true;
+                return !GetBlockUnratedValue(user.Policy);
             }
             }
 
 
             return value.Value <= maxAllowedRating.Value;
             return value.Value <= maxAllowedRating.Value;