using Microsoft.AspNetCore.Authorization;
namespace Jellyfin.Api.Auth.DefaultAuthorizationPolicy
{
///
/// The default authorization requirement.
///
public class DefaultAuthorizationRequirement : IAuthorizationRequirement
{
///
/// Initializes a new instance of the class.
///
/// A value indicating whether to validate parental schedule.
public DefaultAuthorizationRequirement(bool validateParentalSchedule = true)
{
ValidateParentalSchedule = validateParentalSchedule;
}
///
/// Gets a value indicating whether to ignore parental schedule.
///
public bool ValidateParentalSchedule { get; init; }
}
}