mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added ability to set historical flow permission to users (#6330)
This commit is contained in:
parent
297b5d4edb
commit
61f74ce0a1
16 changed files with 454 additions and 290 deletions
|
|
@ -44,12 +44,18 @@ if(isAdministratorOrPrintErr()) then
|
|||
value["language"] = locales_utils.default_locale
|
||||
end
|
||||
end
|
||||
print(' "language": "'..value["language"]..'",\n')
|
||||
if value["allow_pcap_download"] then
|
||||
print(' "allow_pcap_download": true,\n')
|
||||
end
|
||||
print(' "language": "'..value["language"]..'",\n')
|
||||
if value["allow_pcap_download"] then
|
||||
print(' "allow_pcap_download": true,\n')
|
||||
end
|
||||
|
||||
local api_token = ntop.getUserAPIToken(key) or ""
|
||||
|
||||
print(' "language": "'..value["language"]..'",\n')
|
||||
if value["allow_historical_flow"] then
|
||||
print(' "allow_historical_flow": true,\n')
|
||||
end
|
||||
|
||||
local api_token = ntop.getUserAPIToken(key) or ""
|
||||
|
||||
print(' "username": "'..key..'",\n')
|
||||
print(' "api_token": "' ..api_token.. '",\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue