diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-02-23 07:04:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 07:04:44 -0700 |
| commit | ecb5c48538fb46b4aab744d165bd525bd8a53cd3 (patch) | |
| tree | f2fedbedf3556cc1c3c1036ea14fd373f52c15d1 /MediaBrowser.Model | |
| parent | eb3d187f27c34112689d37c50a1f734835a33ef3 (diff) | |
| parent | 6300d01fcceba56932741251443f5b2aa4f76de2 (diff) | |
Merge pull request #8526 from Shadowghost/rating-overhaul
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/Entities/ParentalRating.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/Users/UserPolicy.cs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Entities/ParentalRating.cs b/MediaBrowser.Model/Entities/ParentalRating.cs index 17b2868a3..c92640818 100644 --- a/MediaBrowser.Model/Entities/ParentalRating.cs +++ b/MediaBrowser.Model/Entities/ParentalRating.cs @@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Entities { } - public ParentalRating(string name, int value) + public ParentalRating(string name, int? value) { Name = name; Value = value; @@ -28,6 +28,6 @@ namespace MediaBrowser.Model.Entities /// Gets or sets the value. /// </summary> /// <value>The value.</value> - public int Value { get; set; } + public int? Value { get; set; } } } diff --git a/MediaBrowser.Model/Users/UserPolicy.cs b/MediaBrowser.Model/Users/UserPolicy.cs index cc7d57eb0..80f5e2c37 100644 --- a/MediaBrowser.Model/Users/UserPolicy.cs +++ b/MediaBrowser.Model/Users/UserPolicy.cs @@ -46,6 +46,7 @@ namespace MediaBrowser.Model.Users LoginAttemptsBeforeLockout = -1; MaxActiveSessions = 0; + MaxParentalRating = null; EnableAllChannels = true; EnabledChannels = Array.Empty<Guid>(); |
