From 0fdf3874d4e86ac61763acd3907d071b6d2c66fb Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Thu, 26 Sep 2019 11:05:27 +0200 Subject: [PATCH] Add ACL in integria ticket dashboard --- .../dashboard_detail_integriaims_incident.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pandora_console/operation/incidents/dashboard_detail_integriaims_incident.php b/pandora_console/operation/incidents/dashboard_detail_integriaims_incident.php index e99b6f9347..aab95b4cd7 100644 --- a/pandora_console/operation/incidents/dashboard_detail_integriaims_incident.php +++ b/pandora_console/operation/incidents/dashboard_detail_integriaims_incident.php @@ -124,7 +124,10 @@ $table_files->head[1] = __('Timestamp'); $table_files->head[2] = __('Description'); $table_files->head[3] = __('User'); $table_files->head[4] = __('Size'); -$table_files->head[5] = __('Delete'); + +if (check_acl($config['id_user'], 0, 'IW')) { + $table_files->head[5] = __('Delete'); +} $table_files->data = []; @@ -237,9 +240,12 @@ foreach ($files as $key => $value) { $table_files->data[$i][2] = $value[12]; $table_files->data[$i][3] = $value[8]; $table_files->data[$i][4] = $value[13]; - $table_files->data[$i][5] .= 'data[$i][5] .= ''; - $table_files->data[$i][5] .= html_print_image('images/cross.png', true, ['title' => __('Delete')]); + $table_files->data[$i][5] .= html_print_image('images/cross.png', true, ['title' => __('Delete')]); + } + $table_files->data[$i][5] .= ''; $i++;