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

@ -3795,7 +3795,11 @@
// Node grouping tags
var groupingTags = '<i>None</i>';
if (node.tags != null) { groupingTags = ''; for (var i in node.tags) { groupingTags += '<span class="tagSpan">' + node.tags[i] + '</span>'; } }
x += addDeviceAttribute('Tags', '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer>' + groupingTags + ' <img class=hoverButton src="images/link5.png" /></span>');
if ((meshrights & 4) != 0) {
x += addDeviceAttribute('Tags', '<span onclick=showEditNodeValueDialog(3) style=cursor:pointer>' + groupingTags + ' <img class=hoverButton src="images/link5.png" /></span>');
} else {
x += addDeviceAttribute('Tags', groupingTags);
}
x += '</table><br />';
// Show action button, only show if we have permissions 4, 8, 64