1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Improved MeshCMD server authentication.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-06 09:22:26 -07:00
parent eb9b9d7e53
commit b9b2aa55ba
7 changed files with 28 additions and 7 deletions

View file

@ -5146,7 +5146,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Get the node and the rights for this node
parent.GetNodeWithRights(domain, user, command.nodeids[i], function (node, rights, visible) {
// If this device is connected on MQTT, send a wake action.
if (rights != 0) { parent.parent.mqttbroker.publish(node._id, command.topic, command.msg); }
if (rights != 0) {
parent.parent.mqttbroker.publish(node._id, command.topic, command.msg);
}
});
}