mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added root privileges
This commit is contained in:
parent
a8da92b578
commit
c4b0018968
1 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,14 @@ local rest_utils = require("rest_utils")
|
|||
|
||||
-- ##################################################
|
||||
|
||||
-- Checking root privileges
|
||||
if not isAdministrator() then
|
||||
rest_utils.answer(rest_utils.consts.err.not_granted)
|
||||
return
|
||||
end
|
||||
|
||||
-- ##################################################
|
||||
|
||||
local rc = rest_utils.consts.success.ok
|
||||
local res = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue