1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-12 11:01:52 +00:00

Fixed removeuserfromdevice in MeshCtrl.js

This commit is contained in:
Ylian Saint-Hilaire 2020-05-14 12:10:25 -07:00
parent 7ca1e1e907
commit b88cbf0ba7

View file

@ -686,7 +686,7 @@ function serverConnect() {
break;
}
case 'removeuserfromdevice': {
var op = { action: 'adddeviceuser', nodeid: args.id, usernames: [args.userid], rights: 0, responseid: 'meshctrl' };
var op = { action: 'adddeviceuser', nodeid: args.id, usernames: [args.userid], rights: 0, remove: true, responseid: 'meshctrl' };
ws.send(JSON.stringify(op));
break;
}