diff --git a/pandora_console/godmode/alerts/alert_templates.php b/pandora_console/godmode/alerts/alert_templates.php index cda35892a4..dbd96ac8ac 100644 --- a/pandora_console/godmode/alerts/alert_templates.php +++ b/pandora_console/godmode/alerts/alert_templates.php @@ -326,13 +326,8 @@ foreach ($templates as $template) { $data[1] = ui_print_group_icon ($template["id_group"], true); $data[3] = alerts_get_alert_templates_type_name ($template['type']); - - $hack_id_group_all = $template["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'], $template["id_group"], "LM")) { $data[4] = '