temporarily disabled subscription check

This commit is contained in:
Yared Yemane 2026-05-06 05:10:36 -07:00
parent b62d89574e
commit 73370633ce

View File

@ -199,10 +199,9 @@ func (a *App) RequireActiveSubscription() fiber.Handler {
return fiber.NewError(fiber.StatusInternalServerError, "Failed to verify subscription")
}
if !active {
return c.Status(fiber.StatusForbidden).JSON(domain.ErrorResponse{
Message: "Active subscription required to access this content",
Error: "subscription_required",
})
// Temporary bypass: allow unsubscribed learners to access content.
// Re-enable the previous 403 response when subscription gating is turned back on.
return c.Next()
}
return c.Next()
default: