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 +);