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; break;
} }
case 'removeuserfromdevice': { 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)); ws.send(JSON.stringify(op));
break; break;
} }