remove unnecessary init

This commit is contained in:
cvium 2023-02-09 15:01:04 +01:00
parent cba9657aec
commit ac118e10f0
2 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,6 @@ namespace Jellyfin.Api.Auth.DefaultAuthorizationPolicy
/// <summary>
/// Gets a value indicating whether to ignore parental schedule.
/// </summary>
public bool ValidateParentalSchedule { get; init; }
public bool ValidateParentalSchedule { get; }
}
}

View File

@ -12,9 +12,8 @@ namespace Jellyfin.Api.Auth.FirstTimeSetupPolicy
/// </summary>
/// <param name="validateParentalSchedule">A value indicating whether to ignore parental schedule.</param>
/// <param name="requireAdmin">A value indicating whether administrator role is required.</param>
public FirstTimeSetupRequirement(bool validateParentalSchedule = false, bool requireAdmin = true)
public FirstTimeSetupRequirement(bool validateParentalSchedule = false, bool requireAdmin = true) : base(validateParentalSchedule)
{
ValidateParentalSchedule = validateParentalSchedule;
RequireAdmin = requireAdmin;
}