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:
mdtrooper 2014-10-09 19:04:21 +02:00
parent 46e2286bf8
commit 66df47e973
1 changed files with 13 additions and 2 deletions

View File

@ -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;