mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed desktop input when user as only device rights.
This commit is contained in:
parent
d9ac60cad3
commit
633f31b78d
3 changed files with 5 additions and 5 deletions
|
@ -687,7 +687,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
device = nodes[0];
|
||||
|
||||
// This device exists, meshid given by the device must be ignored, use the server side one.
|
||||
if (device.meshid != obj.dbMeshKey) {
|
||||
if ((device.meshid != null) && (device.meshid != obj.dbMeshKey)) {
|
||||
obj.dbMeshKey = device.meshid;
|
||||
obj.meshid = device.meshid.split('/')[2];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue