mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix captive portal issue when moving a device to the default pool
This commit is contained in:
parent
5b4aa461d9
commit
d2deb32105
4 changed files with 15 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue