From ef4ab44bc7073142930f1ede4ad846fc4ecc8def Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 14 Oct 2019 14:15:59 -0700 Subject: [PATCH] Fixed notes that could not be written. --- meshuser.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshuser.js b/meshuser.js index 2c9fff91..0b6277e3 100644 --- a/meshuser.js +++ b/meshuser.js @@ -2453,7 +2453,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use 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 (???) if ((nodes == null) || (nodes.length == 1)) { meshlinks = user.links[nodes[0].meshid]; - if ((meshlinks) && (meshlinks.rights) && (meshlinks.rights & parent.MESHRIGHT_SETNOTES != 0)) { + if ((meshlinks) && (meshlinks.rights) && ((meshlinks.rights & MESHRIGHT_SETNOTES) != 0)) { // Set the id's notes if (common.validateString(command.notes, 1) == false) { db.Remove('nt' + command.id); // Delete the note for this node diff --git a/package.json b/package.json index 4e007990..55ac63b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.2-j", + "version": "0.4.2-k", "keywords": [ "Remote Management", "Intel AMT",