Fix traffic report incorrectly show in community

This commit is contained in:
emanuele-f 2020-02-13 17:16:06 +01:00
parent acffd2ea6f
commit 70da6923a5
4 changed files with 10 additions and 3 deletions

View file

@ -656,6 +656,13 @@ function isScoreEnabled()
return(ntop.isEnterprise())
end
function hasTrafficReport()
local ts_utils = require("ts_utils_core")
local is_pcap_dump = interface.isPcapDumpInterface()
return((not is_pcap_dump) and (ts_utils.getDriverName() == "rrd") and ntop.isEnterprise())
end
function mustScanAlerts(ifstats)
return areAlertsEnabled()
end