From 8f581a21b832781977416f85160cab87e7466c77 Mon Sep 17 00:00:00 2001 From: vgilc Date: Thu, 26 Apr 2012 12:14:16 +0000 Subject: [PATCH] 2012-04-26 Vanessa Gil * operation/events/events_list.php: The column to validate events is shown for an Operator (only read) user. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6190 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/events/events_list.php | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 25f7fe704f..b1cca0d1a5 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-04-26 Vanessa Gil + + * operation/events/events_list.php: The column to validate events + is shown for an Operator (only read) user. + 2012-04-26 Vanessa Gil * include/functions_filemanager.php: Changed all messages. diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 2f8073e08a..682b6167d7 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -609,8 +609,10 @@ if ($i != 0) { $table->align[$i] = 'center'; $table->size[$i] = '80px'; $i++; - $table->head[$i] = html_print_checkbox ("allbox", "1", false, true); - $table->align[$i] = 'center'; + if (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1) { + $table->head[$i] = html_print_checkbox ("allbox", "1", false, true); + $table->align[$i] = 'center'; + } } $idx = 0; @@ -856,8 +858,10 @@ foreach ($result as $event) { } $i++; - //Checkbox - $data[$i] = html_print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); + if (check_acl ($config["id_user"], $event["id_grupo"], "IW") == 1) { + //Checkbox + $data[$i] = html_print_checkbox_extended ("eventid[]", $event["id_evento"], false, false, false, 'class="chk"', true); + } array_push ($table->data, $data); }