Fix for the user scripts enable action

This commit is contained in:
emanuele-f 2020-01-23 12:04:44 +01:00
parent 74a8b86e7d
commit facfdae358

View file

@ -954,12 +954,6 @@ function user_scripts.toggleScript(confid, script_key, subdir, enable)
return false, i18n("configsets.unknown_user_script", {user_script=script_key})
end
if script_type.has_per_hook_config and enable then
-- Cannot enable all the hooks on a per-hook script automatically
-- as some required config field could be missing
return false, "Enabling a per-hook script is not supported"
end
local config = user_scripts.getScriptConfig(configset, script, subdir)
if(config == nil) then