mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Reworked periodic activities
This commit is contained in:
parent
64b603d855
commit
ab4e49939e
15 changed files with 277 additions and 169 deletions
|
|
@ -1,5 +1,5 @@
|
|||
--
|
||||
-- (C) 2017 - ntop.org
|
||||
-- (C) 2017-24 - ntop.org
|
||||
--
|
||||
local ts_common = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,7 +189,12 @@ end
|
|||
local function isUserAccessAllowed(tags)
|
||||
local user = _SESSION and _SESSION["user"] or ""
|
||||
|
||||
if tags.ifid and not ntop.isnEdge() and not ntop.isAllowedInterface(tonumber(tags.ifid)) then
|
||||
if(user == "admin") then
|
||||
return true
|
||||
end
|
||||
|
||||
if tags.ifid and not ntop.isnEdge()
|
||||
and not ntop.isAllowedInterface(tonumber(tags.ifid)) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "User: " .. user .. " is not allowed to access interface " .. tags.ifid)
|
||||
return false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue