Fix captive portal issue when moving a device to the default pool

This commit is contained in:
emanuele-f 2017-12-08 13:30:42 +01:00
parent 5b4aa461d9
commit d2deb32105
4 changed files with 15 additions and 9 deletions

View file

@ -10,6 +10,7 @@ local prefs = ntop.getPrefs()
local info = ntop.getInfo()
local menu_subpages = require "prefs_menu"
show_advanced_prefs_key = "ntopng.prefs.show_advanced_prefs"
local have_nedge2 = haveNedge2()
-- ############################################
@ -41,7 +42,7 @@ function isSubpageAvailable(subpage, show_advanced_prefs)
if (subpage.disabled) or
((subpage.advanced) and (not show_advanced_prefs)) or
((subpage.pro_only) and (not ntop.isPro())) or
((subpage.enterprise_only) and (not info["version.enterprise_edition"])) then
((subpage.enterprise_only) and (not info["version.enterprise_edition"]) and (not have_nedge2)) then
return false
end