mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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;
|
$tmp['searchChildren'] = 1;
|
||||||
} else {
|
} else {
|
||||||
$tmp['searchChildren'] = 0;
|
$tmp['searchChildren'] = 0;
|
||||||
|
$tmp['noAcl'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp['showEventsBtn'] = 1;
|
$tmp['showEventsBtn'] = 1;
|
||||||
|
@ -1183,24 +1183,26 @@ var TreeController = {
|
|||||||
disabled == false
|
disabled == false
|
||||||
) {
|
) {
|
||||||
if (element.type == "agent" || element.type == "module") {
|
if (element.type == "agent" || element.type == "module") {
|
||||||
$content
|
if (typeof element.noAcl === "undefined") {
|
||||||
.click(function(e) {
|
$content
|
||||||
_getTreeDetailData(
|
.click(function(e) {
|
||||||
element.type,
|
_getTreeDetailData(
|
||||||
element.id,
|
element.type,
|
||||||
element.serverID,
|
element.id,
|
||||||
function(error, data) {
|
element.serverID,
|
||||||
if (error) {
|
function(error, data) {
|
||||||
// console.error(error);
|
if (error) {
|
||||||
} else {
|
// console.error(error);
|
||||||
controller.detailRecipient
|
} else {
|
||||||
.render(element.name, data)
|
controller.detailRecipient
|
||||||
.open();
|
.render(element.name, data)
|
||||||
|
.open();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
);
|
||||||
);
|
})
|
||||||
})
|
.css("cursor", "pointer");
|
||||||
.css("cursor", "pointer");
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user