Replace isEnterprise with isEnterpriseM

This commit is contained in:
Alfredo Cardigliano 2020-04-02 12:36:34 +00:00
parent 457066ebb4
commit 2425134f05
19 changed files with 38 additions and 38 deletions

View file

@ -463,7 +463,7 @@ local function loadAndCheckScript(mod_fname, full_path, plugin, script_type, sub
-- Recheck the edition as the demo mode may expire
if((plugin.edition == "pro" and (not ntop.isPro())) or
((plugin.edition == "enterprise" and (not ntop.isEnterprise())))) then
((plugin.edition == "enterprise" and (not ntop.isEnterpriseM())))) then
traceError(TRACE_DEBUG, TRACE_CONSOLE, string.format("Skipping user script '%s' with '%s' edition", mod_fname, plugin.edition))
return(nil)
end