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

Fixed self device group permission change and agent group uninstall.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-26 10:57:40 -07:00
parent 74539037da
commit 288e42ad2c
6 changed files with 14 additions and 16 deletions

View file

@ -2349,11 +2349,10 @@
}
function groupActionFunction() {
var addedOptions = '';
var addedOptions = '', nodeids = getCheckedDevices();
// Check if any of the selected devices have a MQTT connection active
if (features & 0x00400000) {
var nodeids = getCheckedDevices();
for (var i in nodeids) { if ((getNodeFromId(nodeids[i]).conn & 16) != 0) { addedOptions += '<option value=103>' + "Send MQTT Message" + '</option>'; break; } }
}

View file

@ -3331,11 +3331,10 @@
}
function groupActionFunction() {
var addedOptions = '';
var addedOptions = '', nodeids = getCheckedDevices();
// Check if any of the selected devices have a MQTT connection active
if (features & 0x00400000) {
var nodeids = getCheckedDevices();
for (var i in nodeids) { if ((getNodeFromId(nodeids[i]).conn & 16) != 0) { addedOptions += '<option value=103>' + "Send MQTT Message" + '</option>'; break; } }
}

View file

@ -2349,11 +2349,10 @@
}
function groupActionFunction() {
var addedOptions = '';
var addedOptions = '', nodeids = getCheckedDevices();
// Check if any of the selected devices have a MQTT connection active
if (features & 0x00400000) {
var nodeids = getCheckedDevices();
for (var i in nodeids) { if ((getNodeFromId(nodeids[i]).conn & 16) != 0) { addedOptions += '<option value=103>' + "Envoyer un Message MQTT" + '</option>'; break; } }
}

View file

@ -3329,11 +3329,10 @@
}
function groupActionFunction() {
var addedOptions = '';
var addedOptions = '', nodeids = getCheckedDevices();
// Check if any of the selected devices have a MQTT connection active
if (features & 0x00400000) {
var nodeids = getCheckedDevices();
for (var i in nodeids) { if ((getNodeFromId(nodeids[i]).conn & 16) != 0) { addedOptions += '<option value=103>' + "Envoyer un Message MQTT" + '</option>'; break; } }
}