Add ability to extract traffic to users with permission (direct extraction only)

This commit is contained in:
Alfredo Cardigliano 2020-01-13 17:39:12 +01:00
parent 3611bf7346
commit f4a4c07d80
6 changed files with 51 additions and 23 deletions

View file

@ -15,7 +15,7 @@ local function send_error(msg)
print(json.encode(res))
end
if not recording_utils.isAvailable() then
if not recording_utils.isExtractionAvailable() then
send_error(i18n("traffic_recording.not_granted"))
else
if _GET["epoch_begin"] == nil or _GET["epoch_end"] == nil then