mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Rename haveAdminPrivileges -> isAdministratorOrPrintErr (use meaningful names)
This commit is contained in:
parent
96c5e2025d
commit
ca6707c54a
52 changed files with 53 additions and 53 deletions
|
|
@ -8,7 +8,7 @@ require "lua_utils"
|
|||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
if(haveAdminPrivileges()) then
|
||||
if(isAdministratorOrPrintErr()) then
|
||||
key = "ntopng.user.".. string.lower(_GET["username"]) ..".password"
|
||||
existing = ntop.getCache(key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue