Fixed service/periodicity map availability according to the ntopng version

This commit is contained in:
Luca Deri 2021-01-21 16:29:41 +01:00
parent 98917ee686
commit 2a3425eaa0
4 changed files with 56 additions and 55 deletions

View file

@ -57,10 +57,11 @@ function isSubpageAvailable(subpage, show_advanced_prefs)
if show_advanced_prefs == nil then
show_advanced_prefs = toboolean(ntop.getPref(show_advanced_prefs_key))
end
tprint(info)
if (subpage.hidden) or
((subpage.advanced) and (not show_advanced_prefs)) or
((subpage.pro_only) and (not ntop.isPro())) or
(subpage.enterprise_l_only and (not info["version.enterprise_l_edition"])) or
((subpage.enterprise_only) and (not info["version.enterprise_edition"]) and (not have_nedge)) or
(subpage.nedge_hidden) and (have_nedge) then
return false