Hide system properties for restricted users

This will also hide SNMP devices
This commit is contained in:
emanuele-f 2019-06-03 12:42:23 +02:00
parent 9da8f9fbea
commit 3ecc032c14
5 changed files with 28 additions and 14 deletions

View file

@ -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