System config cleanup, add startup initialization, add more admin checks, move reset code to nf_config

This commit is contained in:
Alfredo Cardigliano 2020-11-20 15:47:21 +01:00
parent 15e5f660e0
commit 9a26717a71
9 changed files with 32 additions and 84 deletions

View file

@ -11,7 +11,7 @@ require "prefs_utils"
local tz_utils = require("tz_utils")
prefsSkipRedis(true)
if not (ntop.isnEdge() or ntop.isAppliance()) then
if not (ntop.isnEdge() or ntop.isAppliance()) or not isAdministrator() then
return
end