We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ff729 commit a6a2b69Copy full SHA for a6a2b69
cmd/public.go
@@ -482,6 +482,14 @@ func handleSubscriptionForm(c echo.Context) error {
482
// handlePublicSubscription handles subscription requests coming from public
483
// API calls.
484
func handlePublicSubscription(c echo.Context) error {
485
+ var (
486
+ app = c.Get("app").(*App)
487
+ )
488
+
489
+ if !app.constants.EnablePublicSubPage {
490
+ return echo.NewHTTPError(http.StatusBadRequest, app.i18n.T("public.invalidFeature"))
491
+ }
492
493
hasOptin, err := processSubForm(c)
494
if err != nil {
495
return err
0 commit comments