Host Pools UI changes

- Do now show the "Not Assigned" group in user pool dropdown
- Show an alert message when creating a Captive Portal user and no pools are defined
- Improve unique member validator to account missing network prefixes
- Prevent deleting an Host Group when a captive portal user is defined on it
This commit is contained in:
emanuele-f 2017-01-20 13:28:24 +01:00
parent 1bd0d01658
commit 0db8abd83e
11 changed files with 120 additions and 39 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 and is_captive_portal_enabled then
if is_captive_portal_active and _GET["captive_portal_users"] ~= nil then
location_href = location_href.."?captive_portal_users=1"
end