From a9bb538e1a98e265e216c53c658fbb55ee0c8fd4 Mon Sep 17 00:00:00 2001 From: danielmaya Date: Thu, 2 Aug 2018 12:47:42 +0200 Subject: [PATCH] Fixed permissions in alert_actions --- pandora_console/godmode/alerts/alert_actions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/alerts/alert_actions.php b/pandora_console/godmode/alerts/alert_actions.php index b60388e6fa..3bad38b982 100644 --- a/pandora_console/godmode/alerts/alert_actions.php +++ b/pandora_console/godmode/alerts/alert_actions.php @@ -370,12 +370,8 @@ foreach ($actions as $action) { $data[0] = ''. $action['name'].''; $data[1] = ui_print_group_icon ($action["id_group"], true) .' '; - $hack_id_group_all = $action["id_group"]; - if ($hack_id_group_all == 0) { - //To avoid check all groups instead the pseudo-group all - $hack_id_group_all = -1; - } - if (check_acl($config['id_user'], $hack_id_group_all, "LM")) { + + if (check_acl($config['id_user'], $action["id_group"], "LM")) { $data[2] = '' . html_print_image("images/copy.png", true) . '';