From 59c68569ab08ba67cc5c4baf8563c9ec0040917d Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 5 Jun 2013 12:05:41 -0400 Subject: [PATCH] CC-5208: DJ can try to edit show not assign to him --- airtime_mvc/application/services/CalendarService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/services/CalendarService.php b/airtime_mvc/application/services/CalendarService.php index dd1b8751c..b0a98174f 100644 --- a/airtime_mvc/application/services/CalendarService.php +++ b/airtime_mvc/application/services/CalendarService.php @@ -79,7 +79,7 @@ class Application_Service_CalendarService // the user is admin or hosting the show, // the show is not recorded if ($now < $end && ($isAdminOrPM || $isHostOfShow) && - !$this->ccShowInstance->isRecorded() ) { + !$this->ccShowInstance->isRecorded() ) { $menu["schedule"] = array( "name"=> _("Add / Remove Content"), @@ -117,7 +117,7 @@ class Application_Service_CalendarService } $isRepeating = $this->ccShow->getFirstCcShowDay()->isRepeating(); - if (!$this->ccShowInstance->isRebroadcast()) { + if (!$this->ccShowInstance->isRebroadcast() && $isAdminOrPM) { if ($isRepeating) { $menu["edit"] = array( "name" => _("Edit"),