From 4f23407ea81074180cf0e658c261e5844d989657 Mon Sep 17 00:00:00 2001 From: "manuel.montes" Date: Thu, 28 Jun 2018 17:03:02 +0200 Subject: [PATCH] Fixed for group All --- pandora_console/operation/agentes/stat_win.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 5a58e63841..90bcf8fd33 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -114,19 +114,9 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent); // ACL $permission = false; $agent_group = (int) agents_get_agent_group($agent_id); - $strict_user = (bool) db_get_value("strict_acl", "tusuario", - "id_user", $config['id_user']); - - if (!empty($agent_group)) { - if ($strict_user) { - $permission = tags_check_acl_by_module($id, $config['id_user'], 'RR') === true; - } - else { - $permission = check_acl($config['id_user'], $agent_group, "RR"); - } - } - - if (!$permission) { + $permission = check_acl($config['id_user'], $agent_group, "AR"); + + if (!$permission) { require ($config['homedir'] . "/general/noaccess.php"); exit; }