Fixes csv download (#6618)

This commit is contained in:
MatteoBiscosi 2022-05-23 19:25:32 +02:00
parent 506426c3b8
commit 784609a9f0
2 changed files with 2 additions and 6 deletions

View file

@ -22,7 +22,7 @@ local res = {}
local ifid = _GET["ifid"]
local format = _GET["format"] or "json"
local no_html = (format == "txt")
local no_html = (format == "csv")
if not auth.has_capability(auth.capabilities.alerts) then
rest_utils.answer(rest_utils.consts.err.not_granted)