diff --git a/pandora_console/godmode/alerts/alert_commands.php b/pandora_console/godmode/alerts/alert_commands.php index da7bfee2e2..7fe93ebbdf 100644 --- a/pandora_console/godmode/alerts/alert_commands.php +++ b/pandora_console/godmode/alerts/alert_commands.php @@ -462,13 +462,16 @@ if (is_ajax()) { } // This check should be after ajax. Because, ajax will be called from configure_alert_action. -if (!check_acl($config['id_user'], 0, 'PM') && !is_user_admin($config['id_user -'])) { +if (!check_acl($config['id_user'], 0, 'PM') && !is_user_admin( + $config['id_user +'] +) +) { echo "
"; - echo "

".__('Command managem -ent is limited to administrator users or user profiles with permissions over Pan -dora FMS management').'

'; + echo "

".__( + 'Command management is limited to administrator users or user profiles with permissions PM' + ).'

'; echo '
'; } @@ -680,12 +683,19 @@ 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_central_policies_on_node === false && !$command['internal'] && check_acl_restricted_all($config['id_user'], $command['id_group'], 'LM')) { - $data['action'] = ''; - $data['action'] .= ''.html_print_image('images/copy.png', true, ['class' => 'invert_filter']).''; - $data['action'] .= ''.html_print_image('images/copy.png', true, ['class' => 'invert_filter']).''; + + $data['action'] .= ''.html_print_image('images/cross.png', true, ['class' => 'invert_filter']).''; - $data['action'] .= ''; + $data['action'] .= ''; + } } array_push($table->data, $data); diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index b566d376ec..c5a16434f8 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -885,6 +885,11 @@ function html_print_select( "; } + $select2 = 'select2.min'; + if ($config['style'] === 'pandora_black') { + $select2 = 'select2_dark.min'; + } + if ($multiple === false) { if (is_ajax()) { $output .= '