From f74b0a562e8530344bd1af422968d6d7a4aae0b8 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 31 Mar 2011 17:10:25 -0400 Subject: [PATCH] -removed "Cancel current show" option for Guest user. --- application/controllers/ScheduleController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/ScheduleController.php b/application/controllers/ScheduleController.php index 9473cf90e..31ce6d3f2 100644 --- a/application/controllers/ScheduleController.php +++ b/application/controllers/ScheduleController.php @@ -176,11 +176,11 @@ class ScheduleController extends Zend_Controller_Action if (strtotime($show->getShowStart()) <= strtotime($today_timestamp) && - strtotime($today_timestamp) < strtotime($show->getShowEnd())) { + strtotime($today_timestamp) < strtotime($show->getShowEnd()) && + $user->isAdmin()) { $menu[] = array('action' => array('type' => 'fn', - //'url' => '/Schedule/cancel-current-show'.$params, - 'callback' => "window['confirmCancelShow']($id)"), - 'title' => 'Cancel Current Show'); + 'callback' => "window['confirmCancelShow']($id)"), + 'title' => 'Cancel Current Show'); } if (strtotime($today_timestamp) < strtotime($show->getShowStart())) {