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") return fiber.NewError(fiber.StatusInternalServerError, "Failed to verify subscription")
} }
if !active { if !active {
return c.Status(fiber.StatusForbidden).JSON(domain.ErrorResponse{ // Temporary bypass: allow unsubscribed learners to access content.
Message: "Active subscription required to access this content", // Re-enable the previous 403 response when subscription gating is turned back on.
Error: "subscription_required", return c.Next()
})
} }
return c.Next() return c.Next()
default: default: