From 015dcdb032cdc626ccfb89772c800e6fc75ce44a Mon Sep 17 00:00:00 2001 From: samucarc Date: Thu, 11 Oct 2018 13:07:59 +0200 Subject: [PATCH] Fixed enterprise ACLs in Agents View --- pandora_console/operation/agentes/estado_agente.php | 4 ++-- pandora_console/operation/agentes/group_view.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index d37cc9396c..20d3f18a47 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -623,7 +623,7 @@ foreach ($agents as $agent) { $data[0] = '
'; $data[0] .= ''; - $data[0] .= ' '.$agent["alias"].''; + $data[0] .= ' '.$agent["alias"].''; $data[0] .= ''; if ($agent['quiet']) { @@ -642,7 +642,7 @@ foreach ($agents as $agent) { $data[0] .= ''.__('View').''; } else{ - $data[0] .= ''.__('View').''; + $data[0] .= ''.__('View').''; } if (check_acl ($config['id_user'], $agent["id_grupo"], "AW")) { diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index abc31b4ea4..d80870f334 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -246,7 +246,7 @@ if (!empty($result_groups)) { $link = ""; } else { $deep = groups_get_group_deep ($data['_id_']); - $link = ""; + $link = ""; } $group_name = "" . ui_print_truncate_text($data['_name_'], 50) . ""; @@ -279,7 +279,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."'>"; } if ($data["_id_"] == 0) { echo $link . $total_agentes . ""; @@ -296,7 +296,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_UNKNOWN ."'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_UNKNOWN ."'>"; } if (($data["_id_"] == 0) && ($agents_unknown != 0)) { echo $link . $agents_unknown . ""; @@ -313,7 +313,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_NOT_INIT ."'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_NOT_INIT ."'>"; } if (($data["_id_"] == 0) && ($agents_notinit != 0)) { echo $link . $agents_notinit . ""; @@ -331,7 +331,7 @@ if (!empty($result_groups)) { href='index.php?sec=monitoring&sec2=operation/tree&tag_id=".$data['_id_']. "&status=" . AGENT_STATUS_CRITICAL ."'>"; } else { $link = ""; + href='index.php?sec=view&sec2=operation/agentes/estado_agente&group_id=".$data['_id_']."&status=" . AGENT_STATUS_CRITICAL ."'>"; } if (($data["_id_"] == 0) && ($agents_critical != 0)) { echo $link . $agents_critical . "";