Adds is_captive_portal flag to prefs

This commit is contained in:
Simone Mainardi 2017-01-19 15:57:37 +01:00
parent 06e3d1fd83
commit f6b4c1f775
6 changed files with 6 additions and 4 deletions

View file

@ -24,7 +24,7 @@ print [[
print('<input id="csrf" name="csrf" type="hidden" value="'..ntop.getRandomCSRFValue()..'" />\n')
local location_href = ntop.getHttpPrefix().."/lua/admin/users.lua"
if is_bridge_iface and _GET["captive_portal_users"] ~= nil then
if is_bridge_iface and _GET["captive_portal_users"] ~= nil and is_captive_portal_enabled then
location_href = location_href.."?captive_portal_users=1"
end