mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Hide system properties for restricted users
This will also hide SNMP devices
This commit is contained in:
parent
9da8f9fbea
commit
3ecc032c14
5 changed files with 28 additions and 14 deletions
|
|
@ -119,6 +119,10 @@ function getSystemInterfaceId()
|
|||
return "-1"
|
||||
end
|
||||
|
||||
function isAllowedSystemInterface()
|
||||
return ntop.isAllowedInterface(tonumber(getSystemInterfaceId()))
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Note that ifname can be set by Lua.cpp so don't touch it if already defined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue