From f83342969539eb1d2d67353e3aabb194dd1324d5 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Thu, 11 Mar 2021 12:38:42 +0100 Subject: [PATCH] restricted action creation on alerts created from policy --- pandora_console/godmode/alerts/alert_list.list.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index 5f25b79a10..51624effc3 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -844,9 +844,11 @@ foreach ($simple_alerts as $alert) { ['title' => __('Add action')] ); } else { - $data[4] .= ''; - $data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action')]); - $data[4] .= ''; + if ((int) $alert['id_policy_alerts'] === 0) { + $data[4] .= ''; + $data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action')]); + $data[4] .= ''; + } } }