temporarily disabled subscription check
This commit is contained in:
parent
b62d89574e
commit
73370633ce
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user