Added check on agents without acl
This commit is contained in:
parent
55f8f09894
commit
626431f27c
|
@ -430,6 +430,7 @@ class TreeService extends Tree
|
|||
$tmp['searchChildren'] = 1;
|
||||
} else {
|
||||
$tmp['searchChildren'] = 0;
|
||||
$tmp['noAcl'] = 1;
|
||||
}
|
||||
|
||||
$tmp['showEventsBtn'] = 1;
|
||||
|
|
|
@ -1183,24 +1183,26 @@ var TreeController = {
|
|||
disabled == false
|
||||
) {
|
||||
if (element.type == "agent" || element.type == "module") {
|
||||
$content
|
||||
.click(function(e) {
|
||||
_getTreeDetailData(
|
||||
element.type,
|
||||
element.id,
|
||||
element.serverID,
|
||||
function(error, data) {
|
||||
if (error) {
|
||||
// console.error(error);
|
||||
} else {
|
||||
controller.detailRecipient
|
||||
.render(element.name, data)
|
||||
.open();
|
||||
if (typeof element.noAcl === "undefined") {
|
||||
$content
|
||||
.click(function(e) {
|
||||
_getTreeDetailData(
|
||||
element.type,
|
||||
element.id,
|
||||
element.serverID,
|
||||
function(error, data) {
|
||||
if (error) {
|
||||
// console.error(error);
|
||||
} else {
|
||||
controller.detailRecipient
|
||||
.render(element.name, data)
|
||||
.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
})
|
||||
.css("cursor", "pointer");
|
||||
);
|
||||
})
|
||||
.css("cursor", "pointer");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue