The Free Software Media System - Server Backend & API
Backport pull request #15786 from jellyfin/release-10.11.z
theguymadmax928a8458dd62
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex 3c46d53e5c..d9d2d0e3a8 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -1620,12 +1620,17 @@ namespace MediaBrowser.Controller.Entitiesreturn isAllowed;}- if (maxAllowedSubRating is not null)+ if (!maxAllowedRating.HasValue){- return (ratingScore.SubScore ?? 0) <= maxAllowedSubRating && ratingScore.Score <= maxAllowedRating.Value;+ return true;+ }++ if (ratingScore.Score != maxAllowedRating.Value)+ {+ return ratingScore.Score < maxAllowedRating.Value;}- return !maxAllowedRating.HasValue || ratingScore.Score <= maxAllowedRating.Value;+ return !maxAllowedSubRating.HasValue || (ratingScore.SubScore ?? 0) <= maxAllowedSubRating.Value;}public ParentalRatingScore GetParentalRatingScore()