diff --git a/pandora_console/general/first_task/custom_graphs.php b/pandora_console/general/first_task/custom_graphs.php index aba2e72ee2..1e0c98dcbd 100644 --- a/pandora_console/general/first_task/custom_graphs.php +++ b/pandora_console/general/first_task/custom_graphs.php @@ -22,14 +22,18 @@ $msg = __( $msg .= '

'.__("There are two types of graphs: The agent's automated graphs and the graphs the user customizes by using one or more modules to do so."); - $url_new = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder'; - $button = '
- -
'; +$button = ''; - echo ui_print_empty_view( - __('Create custom graph'), - $msg, - 'custom-graph.svg', - $button - ); +if (check_acl($config['id_user'], 0, 'RW') || check_acl($config['id_user'], 0, 'RM')) { + $url_new = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder'; + $button = '
+ +
'; +} + +echo ui_print_empty_view( + __('Create custom graph'), + $msg, + 'custom-graph.svg', + $button +); diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index e072b0f28a..5e9676054a 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -481,7 +481,7 @@ if (!empty($graphs)) { $ActionButtons[] = ''; } - if (!empty($result_graphs)) { + if (!empty($result_graphs) && ($report_w || $report_m)) { $ActionButtons[] = "
"; $ActionButtons[] = html_print_input_hidden('multiple_delete', 1, true); $ActionButtons[] = html_print_submit_button(