瀏覽代碼

Fix incorrect config check in subscriber data wipe

Kailash Nadh 5 年之前
父節點
當前提交
67eb3dbbbe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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."))