mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Remove restriction on upgrading non-local modules
This commit is contained in:
parent
1111d2518b
commit
1ac18d7b33
@ -176,13 +176,6 @@ var api = module.exports = {
|
|||||||
err.status = 400;
|
err.status = 400;
|
||||||
return reject(err);
|
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.nodes.installModule(opts.module,opts.version).then(function(info) {
|
||||||
runtime.log.audit({event: "nodes.install",module:opts.module,version:opts.version});
|
runtime.log.audit({event: "nodes.install",module:opts.module,version:opts.version});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user