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

Fixed device tagging rights.

This commit is contained in:
Ylian Saint-Hilaire 2019-05-27 11:07:53 -07:00
parent fccc2bda63
commit 7b9db1a5b5
5 changed files with 13 additions and 5 deletions

View file

@ -1829,7 +1829,11 @@
// Node tags
var groupingTags = '<i>None</i>';
if (node.tags != null) { groupingTags = ''; for (var i in node.tags) { groupingTags += '<span style="background-color:lightgray;padding:3px;margin-right:4px;border-radius:5px">' + node.tags[i] + '</span>'; } }
x += addDeviceAttribute('Tags', '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer>' + groupingTags + '</span>');
if ((meshrights & 4) != 0) {
x += addDeviceAttribute('Tags', '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer>' + groupingTags + '</span>');
} else {
x += addDeviceAttribute('Tags', groupingTags);
}
x += '</table><br />';
// Show action button, only show if we have permissions 4, 8, 64