Fixed notes that could not be written.

Ylian Saint-Hilaire committed Oct 14, 2019 at 14:15 UTC ef4ab44bc7073142930f1ede4ad846fc4ecc8def
2 files changed +2 -2
meshuser.js
+1 -1
@@ -2453,7 +2453,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
2453 db.Get(command.id, function (err, nodes) { // TODO: Make a NodeRights(user) method that also does not do a db call if agent is connected (???)
2454 if ((nodes == null) || (nodes.length == 1)) {
2455 meshlinks = user.links[nodes[0].meshid];
2456 - if ((meshlinks) && (meshlinks.rights) && (meshlinks.rights & parent.MESHRIGHT_SETNOTES != 0)) {
2456 + if ((meshlinks) && (meshlinks.rights) && ((meshlinks.rights & MESHRIGHT_SETNOTES) != 0)) {
2457 // Set the id's notes
2458 if (common.validateString(command.notes, 1) == false) {
2459 db.Remove('nt' + command.id); // Delete the note for this node
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.4.2-j",
3 + "version": "0.4.2-k",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",