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

@ -9,6 +9,7 @@ require "lua_utils"
require "prefs_utils"
require "blacklist_utils"
local template = require "template_utils"
local have_nedge2 = haveNedge2()
if(ntop.isPro()) then
package.path = dirs.installdir .. "/scripts/lua/pro/?.lua;" .. package.path
@ -363,7 +364,7 @@ function printBridgingPrefs()
print('<table class="table">')
if show_advanced_prefs then
if show_advanced_prefs and not have_nedge2 then
print('<tr><th colspan=2 class="info">'..i18n("traffic_policy")..'</th></tr>')
prefsToggleButton({
@ -1096,7 +1097,7 @@ if(tab == "discovery") then
end
if(tab == "bridging") then
if(info["version.enterprise_edition"]) then
if(info["version.enterprise_edition"] or have_nedge2) then
printBridgingPrefs()
end
end