From a5779e682987211e2094ef1e3361a5d302a4187f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 16 Dec 2015 11:47:33 +0100 Subject: [PATCH] Fixed problems with recursions in manage agents. Tiquet: #3078 --- pandora_console/godmode/agentes/modificar_agente.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index a4acadfdcd..ec8ce88c89 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -22,7 +22,7 @@ $group_id = (int) get_parameter ("group_id"); $ag_group = get_parameter ("ag_group_refresh", -1); $sortField = get_parameter('sort_field'); $sort = get_parameter('sort', 'none'); -$recursion = get_parameter('recursion'); +$recursion = (bool) get_parameter('recursion',false); $disabled = get_parameter('disabled', 0); if ($ag_group == -1 ) @@ -134,7 +134,7 @@ echo ""; echo __('Group') . ' '; $own_info = get_user_info($config['id_user']); -if (!$own_info['is_admin'] && !check_acl ($config['id_user'], 0, "PM")) +if (!$own_info['is_admin'] && !check_acl ($config['id_user'], 0, "AW")) $return_all_group = false; else $return_all_group = true;