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:
parent
06dec37ad4
commit
55b0f27b12
2 changed files with 6 additions and 3 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue