Browse Source

Fix incorrect config check in subscriber data wipe

Kailash Nadh 5 years ago
parent
commit
67eb3dbbbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public.go

+ 1 - 1
public.go

@@ -399,7 +399,7 @@ func handleWipeSubscriberData(c echo.Context) error {
 	)
 	)
 
 
 	// Is wiping allowed?
 	// Is wiping allowed?
-	if !app.constants.Privacy.AllowExport {
+	if !app.constants.Privacy.AllowWipe {
 		return c.Render(http.StatusBadRequest, tplMessage,
 		return c.Render(http.StatusBadRequest, tplMessage,
 			makeMsgTpl("Invalid request", "",
 			makeMsgTpl("Invalid request", "",
 				"The feature is not available."))
 				"The feature is not available."))