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")
|
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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user