mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements bitmap-based limited privileges for non-admins
Implements #4489
This commit is contained in:
parent
a64095f244
commit
049bfdcf4a
26 changed files with 180 additions and 36 deletions
|
|
@ -11,6 +11,17 @@ local json = require("dkjson")
|
|||
local plugins_utils = require "plugins_utils"
|
||||
local recipients_rest_utils = require "recipients_rest_utils"
|
||||
local recipients = require "recipients"
|
||||
local rest_utils = require "rest_utils"
|
||||
local auth = require "auth"
|
||||
|
||||
-- ################################################
|
||||
|
||||
if not auth.has_capability(auth.capabilities.notifications) then
|
||||
rest_utils.answer(rest_utils.consts.err.not_granted)
|
||||
return
|
||||
end
|
||||
|
||||
-- ################################################
|
||||
|
||||
local action = _POST["action"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue