using Jellyfin.Api.Auth.DefaultAuthorizationPolicy;
using Jellyfin.Data.Enums;
namespace Jellyfin.Api.Auth.UserPermissionPolicy
{
///
/// The user permission requirement.
///
public class UserPermissionRequirement : DefaultAuthorizationRequirement
{
///
/// Initializes a new instance of the class.
///
/// The required .
/// Whether to validate the user's parental schedule.
public UserPermissionRequirement(PermissionKind requiredPermission, bool validateParentalSchedule = true) : base(validateParentalSchedule)
{
RequiredPermission = requiredPermission;
}
///
/// Gets the required user permission.
///
public PermissionKind RequiredPermission { get; }
}
}