Exposes {periodicity,service} maps in nEdge UI

Addresses #5917
This commit is contained in:
Simone Mainardi 2021-09-28 12:23:31 +02:00
parent a1b31b054e
commit 879858639a
4 changed files with 40 additions and 39 deletions

View file

@ -71,7 +71,9 @@ local maps_utils = {}
-- ##############################################
local function areMapsEnabled()
return(ntop.isEnterpriseL() and ntop.isAdministrator() and (ntop.getPref(behavior_maps_key) == "1"))
local res = (ntop.isEnterpriseL() or ntop.isnEdgeEnterprise()) and ntop.isAdministrator() and (ntop.getPref(behavior_maps_key) == "1")
return res
end
-- ##############################################