From 67eb3dbbbe1c10cdcd711525bb2d2ccc65832455 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Fri, 5 Jun 2020 09:25:45 +0530 Subject: [PATCH] Fix incorrect config check in subscriber data wipe --- public.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public.go b/public.go index 30334e5..96ecbb8 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."))