Skip to content

Commit

Permalink
Hide host live traffic download when not a packet interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 12, 2019
1 parent 2c6a3fe commit 9137716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lua/host_details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,10 @@ end

if(host["json"] ~= nil) then
print("<tr><th>"..i18n("download").."&nbsp;<i class=\"fa fa-download fa-lg\"></i></th><td")
if(not isAdministrator()) then print(" colspan=2") end
if(not isAdministrator() or not interface.isPacketInterface()) then print(" colspan=2") end
print("><A HREF='"..ntop.getHttpPrefix().."/lua/host_get_json.lua?ifid="..ifId.."&"..hostinfo2url(host_info).."'>JSON</A></td>")

if(isAdministrator()) then
if(isAdministrator() and interface.isPacketInterface()) then
print [[<td>]]

local live_traffic_utils = require("live_traffic_utils")
Expand Down

0 comments on commit 9137716

Please sign in to comment.