Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect config check in subscriber data wipe

Kailash Nadh67eb3dbbbe1c
diff --git a/public.go b/public.go
index 30334e53..96ecbb88 100644
--- a/public.go
+++ b/public.go
@@ -399,7 +399,7 @@ func handleWipeSubscriberData(c echo.Context) error {
)
// Is wiping allowed?
- if !app.constants.Privacy.AllowExport {
+ if !app.constants.Privacy.AllowWipe {
return c.Render(http.StatusBadRequest, tplMessage,
makeMsgTpl("Invalid request", "",
"The feature is not available."))