Explorar o código

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

Eric Reed %!s(int64=9) %!d(string=hai) anos
pai
achega
3aa1aff371
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             if (!value.HasValue)
             {
-                return true;
+                return !GetBlockUnratedValue(user.Policy);
             }
 
             return value.Value <= maxAllowedRating.Value;