mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes alert dashboards wrong ifid
This commit is contained in:
parent
ce865d22b7
commit
a6277b8d87
9 changed files with 23 additions and 17 deletions
|
|
@ -19,14 +19,15 @@ local user_alert_store = require "user_alert_store".new()
|
|||
--
|
||||
|
||||
local rc = rest_utils.consts.success.ok
|
||||
local ifid = _GET["ifid"]
|
||||
|
||||
interface.select(ifid)
|
||||
|
||||
if not auth.has_capability(auth.capabilities.alerts) then
|
||||
rest_utils.answer(rest_utils.consts.err.not_granted)
|
||||
return
|
||||
end
|
||||
|
||||
interface.select(getSystemInterfaceId())
|
||||
|
||||
local res = user_alert_store:get_stats()
|
||||
local top_alerts = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue