Explorar o código

Fix incorrect config check in subscriber data wipe

Kailash Nadh %!s(int64=5) %!d(string=hai) anos
pai
achega
67eb3dbbbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public.go

+ 1 - 1
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."))