From b70e8b8f6fd59185f429d22ba1ccc622dd03427f Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 14 Mar 2017 08:35:16 +0100 Subject: [PATCH] Added all type of recon task to networkmap editor. --- .../operation/agentes/pandora_networkmap.editor.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pandora_console/operation/agentes/pandora_networkmap.editor.php b/pandora_console/operation/agentes/pandora_networkmap.editor.php index be3c979757..5bf3dea844 100644 --- a/pandora_console/operation/agentes/pandora_networkmap.editor.php +++ b/pandora_console/operation/agentes/pandora_networkmap.editor.php @@ -139,9 +139,7 @@ $id_snmp_l2_recon = db_get_value('id_recon_script', 'trecon_script', if (! check_acl ($config['id_user'], 0, "PM")) { $sql = sprintf('SELECT * FROM trecon_task RT, tusuario_perfil UP - WHERE - id_recon_script = ' . $id_snmp_l2_recon . ' AND - UP.id_usuario = "%s" AND UP.id_grupo = RT.id_group', + WHERE UP.id_usuario = "%s" AND UP.id_grupo = RT.id_group', $config['id_user']); @@ -149,8 +147,7 @@ if (! check_acl ($config['id_user'], 0, "PM")) { } else { $sql = sprintf('SELECT * - FROM trecon_task - WHERE id_recon_script = ' . $id_snmp_l2_recon); + FROM trecon_task'); $result = db_get_all_rows_sql ($sql); }