Browse Source

Fix incorrect config check in subscriber data wipe

Kailash Nadh 5 năm trước cách đây
mục cha
commit
67eb3dbbbe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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."))