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
46e2286bf8
commit
66df47e973
|
@ -973,7 +973,13 @@ function visual_map_get_status_element($layoutData) {
|
|||
//Status for a whole agent, if agente_modulo was == 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!
|
||||
$status = VISUAL_MAP_STATUS_UNKNOWN;
|
||||
}
|
||||
|
@ -2183,7 +2189,12 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0) {
|
|||
}
|
||||
// Agent
|
||||
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)
|
||||
return VISUAL_MAP_STATUS_CRITICAL_BAD;
|
||||
|
|
Loading…
Reference in New Issue