From 02780aed410815b709a2cac2bd30285d52cb8f96 Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Thu, 21 Nov 2019 16:36:34 +0100 Subject: [PATCH] fix bug when checking acl permissions with regard to secondary groups in monitor view --- pandora_console/operation/agentes/status_monitor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 03fb79d168..1f09545f97 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1485,7 +1485,8 @@ if (!empty($result)) { // Avoid the check on the metaconsole. Too slow to show/hide an icon depending on the permissions if (!is_metaconsole()) { - $acl_graphs = check_acl($config['id_user'], $row['id_group'], 'RR'); + $agent_groups = agents_get_all_groups_agent($row['id_agent'], $row['id_group']); + $acl_graphs = check_acl_one_of_groups($config['id_user'], $agent_groups, 'RR'); } else { $acl_graphs = true; }