Fix incorrect config check in subscriber data wipe
This commit is contained in:
parent
ae68bd2645
commit
67eb3dbbbe
|
@ -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."))
|
||||||
|
|
Loading…
Reference in New Issue