mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
enforced admin privileges on endpoint pages
This commit is contained in:
parent
ac03865c01
commit
237309fc58
7 changed files with 28 additions and 36 deletions
|
|
@ -13,9 +13,8 @@ local json = require "dkjson"
|
|||
|
||||
sendHTTPContentTypeHeader('application/json')
|
||||
|
||||
if (not isAdministrator()) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "The user doesn't have the privileges to get notification endpoint recipients!")
|
||||
reportError("The user doesn't have the privileges to get notification endpoint recipients!")
|
||||
if not haveAdminPrivileges(true) then
|
||||
return
|
||||
end
|
||||
|
||||
local recipients = notification_recipients.get_recipients()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue