Disabled the check of ACL in the agents into visualmap. For avoid very slow visualmaps in Pandoras with ACL tags
This commit is contained in:
parent
1de9f8b051
commit
227da716b9
|
@ -973,7 +973,13 @@ function visual_map_get_status_element($layoutData) {
|
||||||
//Status for a whole agent, if agente_modulo was == 0
|
//Status for a whole agent, if agente_modulo was == 0
|
||||||
}
|
}
|
||||||
else if ($layoutData['id_agent'] != 0) {
|
else if ($layoutData['id_agent'] != 0) {
|
||||||
$status = agents_get_status ($layoutData["id_agent"]);
|
|
||||||
|
//--------------------------------------------------
|
||||||
|
// ADDED NO CHECK ACL FOR AVOID CHECK TAGS THAT
|
||||||
|
// MAKE VERY SLOW THE VISUALMAPS WITH ACL TAGS
|
||||||
|
//--------------------------------------------------
|
||||||
|
$status = agents_get_status ($layoutData["id_agent"], true);
|
||||||
|
|
||||||
if ($status == -1) // agents_get_status return -1 for unknown!
|
if ($status == -1) // agents_get_status return -1 for unknown!
|
||||||
$status = VISUAL_MAP_STATUS_UNKNOWN;
|
$status = VISUAL_MAP_STATUS_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
@ -2183,7 +2189,12 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0) {
|
||||||
}
|
}
|
||||||
// Agent
|
// Agent
|
||||||
else {
|
else {
|
||||||
$status = agents_get_status ($data["id_agent"]);
|
//--------------------------------------------------
|
||||||
|
// ADDED NO CHECK ACL FOR AVOID CHECK TAGS THAT
|
||||||
|
// MAKE VERY SLOW THE VISUALMAPS WITH ACL TAGS
|
||||||
|
//--------------------------------------------------
|
||||||
|
|
||||||
|
$status = agents_get_status ($data["id_agent"], true);
|
||||||
}
|
}
|
||||||
if ($status == VISUAL_MAP_STATUS_CRITICAL_BAD)
|
if ($status == VISUAL_MAP_STATUS_CRITICAL_BAD)
|
||||||
return VISUAL_MAP_STATUS_CRITICAL_BAD;
|
return VISUAL_MAP_STATUS_CRITICAL_BAD;
|
||||||
|
|
Loading…
Reference in New Issue