Remove restriction on upgrading non-local modules

This commit is contained in:
Nick O'Leary 2018-10-25 13:05:57 +01:00
parent 1111d2518b
commit 1ac18d7b33
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 0 additions and 7 deletions

View File

@ -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});