1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fake semantic versioning for MeshCentral version comparison / plugin update compatibility check

This commit is contained in:
Ryan Blenis 2019-11-06 20:00:09 -05:00
parent 06dec37ad4
commit 55b0f27b12
2 changed files with 6 additions and 3 deletions

View file

@ -3130,8 +3130,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
case 'addplugin': {
if ((user.siteadmin & 0xFFFFFFFF) == 0 || parent.parent.pluginHandler == null) break; // must be full admin, plugins enabled
try {
//parent.parent.pluginHandler.addPlugin(command.url)
try {
parent.parent.pluginHandler.getPluginConfig(command.url)
.then(parent.parent.pluginHandler.addPlugin)
.then(function(docs){