From 89bd5ec22ca0699c173c329e84d5d91685669566 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 20 Oct 2022 10:42:27 +0200 Subject: [PATCH] #9665 Fixed button 2 --- pandora_console/godmode/alerts/alert_commands.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pandora_console/godmode/alerts/alert_commands.php b/pandora_console/godmode/alerts/alert_commands.php index 7b07f583f9..121828de32 100644 --- a/pandora_console/godmode/alerts/alert_commands.php +++ b/pandora_console/godmode/alerts/alert_commands.php @@ -797,11 +797,7 @@ foreach ($commands as $command) { // (IMPORTANT, DO NOT CHANGE!) only users with permissions over "All" group have access to edition of commands belonging to "All" group. if ($is_management_allowed === true && !$command['internal'] && check_acl_restricted_all($config['id_user'], $command['id_group'], 'LM')) { - if (check_acl($config['id_user'], 0, 'PM') || is_user_admin( - $config['id_user - '] - ) - ) { + if (is_user_admin($config['id_user']) === true) { $data['action'] = ''; $data['action'] .= ''.html_print_image('images/copy.png', true, ['class' => 'invert_filter']).'';