mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09: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
|
|
@ -19,7 +19,7 @@ local import_export_rest_utils = require "import_export_rest_utils"
|
|||
-- NOTE: in case of invalid login, no error is returned but redirected to login
|
||||
--
|
||||
|
||||
if not haveAdminPrivileges() then
|
||||
if not isAdministratorOrPrintErr() then
|
||||
rest_utils.answer(rest_utils.consts.err.not_granted)
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue