Small fix in delete mesh

Ylian Saint-Hilaire committed Jul 5, 2019 at 13:46 UTC b65eecb97650b9487aa417bbb3b676f5db87e7bf
2 files changed +2 -1
meshuser.js
+1
@@ -1509,6 +1509,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
1509 try {
1510 // Delete a mesh and all computers within it
1511 if (common.validateString(command.meshid, 1, 1024) == false) { err = 'Invalid group identifier'; } // Check the meshid
1512 + else if (command.meshid.indexOf('/') == -1) { command.meshid = 'mesh/' + domain.id + '/' + command.meshid; }
1513 } catch (ex) { err = 'Validation exception: ' + ex; }
1514
1515 // Handle any errors
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.3.7-f",
3 + "version": "0.3.7-g",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",