Add possibility to skip redis access for preferences

This commit is contained in:
emanuele-f 2017-12-27 14:55:15 +01:00
parent 2e42c0216b
commit 13e2333bfd
5 changed files with 28 additions and 9 deletions

View file

@ -9,7 +9,6 @@ require "lua_utils"
require "prefs_utils"
require "blacklist_utils"
local template = require "template_utils"
local have_nedge = ntop.isnEdge()
if(ntop.isPro()) then
package.path = dirs.installdir .. "/scripts/lua/pro/?.lua;" .. package.path
@ -381,7 +380,7 @@ function printBridgingPrefs()
print('<table class="table">')
if show_advanced_prefs and not have_nedge then
if show_advanced_prefs then
print('<tr><th colspan=2 class="info">'..i18n("traffic_policy")..'</th></tr>')
prefsToggleButton({
@ -1114,7 +1113,7 @@ if(tab == "discovery") then
end
if(tab == "bridging") then
if(info["version.enterprise_edition"] or have_nedge) then
if info["version.enterprise_edition"] then
printBridgingPrefs()
end
end