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

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.3.5-f",
"version": "0.3.5-g",
"keywords": [
"Remote Management",
"Intel AMT",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

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