enforced admin privileges on endpoint pages

This commit is contained in:
gabryon99 2020-05-13 18:26:01 +02:00
parent ac03865c01
commit 237309fc58
7 changed files with 28 additions and 36 deletions

View file

@ -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