using Jellyfin.Api.Auth.DefaultAuthorizationPolicy;
namespace Jellyfin.Api.Auth.FirstTimeSetupPolicy
{
///
/// The authorization requirement, requiring incomplete first time setup or default privileges, for the authorization handler.
///
public class FirstTimeSetupRequirement : DefaultAuthorizationRequirement
{
///
/// Initializes a new instance of the class.
///
/// A value indicating whether to ignore parental schedule.
/// A value indicating whether administrator role is required.
public FirstTimeSetupRequirement(bool validateParentalSchedule = false, bool requireAdmin = true) : base(validateParentalSchedule)
{
RequireAdmin = requireAdmin;
}
///
/// Gets a value indicating whether administrator role is required.
///
public bool RequireAdmin { get; }
}
}