mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +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
|
|
@ -14,6 +14,10 @@ local notification_endpoints = require("notification_endpoints")
|
|||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
||||
if not haveAdminPrivileges() then
|
||||
return
|
||||
end
|
||||
|
||||
page_utils.set_active_menu_entry(page_utils.menu_entries.endpoint_notifications)
|
||||
|
||||
-- append the menu above the page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue