From 1ac18d7b33a0ea7b880658a8f4e71dd725466eb1 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 25 Oct 2018 13:05:57 +0100 Subject: [PATCH] Remove restriction on upgrading non-local modules --- packages/node_modules/@node-red/runtime/lib/api/nodes.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/node_modules/@node-red/runtime/lib/api/nodes.js b/packages/node_modules/@node-red/runtime/lib/api/nodes.js index dd3a24ee4..bc7b2c36b 100644 --- a/packages/node_modules/@node-red/runtime/lib/api/nodes.js +++ b/packages/node_modules/@node-red/runtime/lib/api/nodes.js @@ -176,13 +176,6 @@ var api = module.exports = { err.status = 400; return reject(err); } - if (!existingModule.local) { - runtime.log.audit({event: "nodes.install",module:opts.module, version:opts.version, error:"module_not_local"}); - var err = new Error("Module not locally installed"); - err.code = "module_not_local"; - err.status = 400; - return reject(err); - } } runtime.nodes.installModule(opts.module,opts.version).then(function(info) { runtime.log.audit({event: "nodes.install",module:opts.module,version:opts.version});