mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds host pool column to CP users table
This commit is contained in:
parent
83df3d1e7a
commit
53724ce33a
7 changed files with 130 additions and 50 deletions
|
|
@ -11,14 +11,14 @@ sendHTTPHeader('application/json')
|
|||
if(haveAdminPrivileges()) then
|
||||
print("{\n")
|
||||
|
||||
users_list = ntop.getUsers()
|
||||
local users_list = ntop.getUsers()
|
||||
for key, value in pairs(users_list) do
|
||||
if(key == _GET["user"]) then
|
||||
|
||||
if value["group"] == "captive_portal" then
|
||||
print(' "host_pool_id": "'..value["host_pool_id"]..'",\n')
|
||||
if value["limited_lifetime"] then
|
||||
print(' "limited_lifetime": true,\n')
|
||||
print(' "limited_lifetime": '..value["limited_lifetime"]..',\n')
|
||||
end
|
||||
else
|
||||
print(' "allowed_nets": "'..value["allowed_nets"]..'",\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue