mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
Fixes menu entry not correctly hidden (#7057)
This commit is contained in:
parent
fe6df37b70
commit
45e0acf8ef
1 changed files with 6 additions and 17 deletions
|
|
@ -174,18 +174,6 @@ else
|
|||
entry = page_utils.menu_entries.traffic_dashboard,
|
||||
url = ntop.isPro() and '/lua/pro/dashboard.lua' or '/lua/index.lua',
|
||||
},
|
||||
{
|
||||
entry = page_utils.menu_entries.traffic_analysis,
|
||||
hidden = false,
|
||||
hidden = (not ntop.isEnterprise())
|
||||
or (not prefs.is_dump_flows_to_clickhouse_enabled)
|
||||
or ifs.isViewed
|
||||
or not (auth.has_capability(auth.capabilities.historical_flows)
|
||||
and not ntop.getPref("ntopng.user." .. session_user .. ".allow_historical_flow") == "1"
|
||||
and not is_admin)
|
||||
,
|
||||
url = "/lua/pro/db_search.lua?page=analysis",
|
||||
},
|
||||
{
|
||||
entry = page_utils.menu_entries.divider,
|
||||
},
|
||||
|
|
@ -226,11 +214,12 @@ else
|
|||
},
|
||||
{
|
||||
entry = page_utils.menu_entries.db_explorer,
|
||||
hidden = not ntop.isEnterprise() or (not prefs.is_dump_flows_to_clickhouse_enabled) or ifs.isViewed
|
||||
or not auth.has_capability(auth.capabilities.historical_flows)
|
||||
or not (ntop.getPref("ntopng.user." .. session_user .. ".allow_historical_flow") == "1" or is_admin)
|
||||
,
|
||||
|
||||
hidden = (not ntop.isEnterprise())
|
||||
or (not prefs.is_dump_flows_to_clickhouse_enabled)
|
||||
or ifs.isViewed
|
||||
or not (auth.has_capability(auth.capabilities.historical_flows)
|
||||
or (ntop.getPref("ntopng.user." .. session_user .. ".allow_historical_flow") == "1")
|
||||
or is_admin),
|
||||
url = "/lua/pro/db_search.lua",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue