mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-23 14:46:49 +03:00
Fixed notes that could not be written.
This commit is contained in:
parent
0e3f60e613
commit
ef4ab44bc7
@ -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 (???)
|
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)) {
|
if ((nodes == null) || (nodes.length == 1)) {
|
||||||
meshlinks = user.links[nodes[0].meshid];
|
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
|
// Set the id's notes
|
||||||
if (common.validateString(command.notes, 1) == false) {
|
if (common.validateString(command.notes, 1) == false) {
|
||||||
db.Remove('nt' + command.id); // Delete the note for this node
|
db.Remove('nt' + command.id); // Delete the note for this node
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.2-j",
|
"version": "0.4.2-k",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
Loading…
Reference in New Issue
Block a user