CC-5408 : Can't add content to now playing show on calendar page

can schedule the now playing show from the calendar page.
This commit is contained in:
Naomi 2013-10-11 16:30:49 -04:00
parent c765438b95
commit 470f0b2a7f
1 changed files with 19 additions and 14 deletions

View File

@ -80,10 +80,10 @@ class Application_Service_CalendarService
} }
} else { } else {
// Show content can be modified from the calendar if: // Show content can be modified from the calendar if:
// the show has not started,
// the user is admin or hosting the show, // the user is admin or hosting the show,
// the show is not recorded // the show is not recorded
if ($now < $start && ($isAdminOrPM || $isHostOfShow) &&
if ($now < $end && ($isAdminOrPM || $isHostOfShow) &&
!$this->ccShowInstance->isRecorded() ) { !$this->ccShowInstance->isRecorded() ) {
$menu["schedule"] = array( $menu["schedule"] = array(
@ -91,6 +91,11 @@ class Application_Service_CalendarService
"icon" => "add-remove-content", "icon" => "add-remove-content",
"url" => $baseUrl."showbuilder/builder-dialog/"); "url" => $baseUrl."showbuilder/builder-dialog/");
}
if ($now < $start && ($isAdminOrPM || $isHostOfShow) &&
!$this->ccShowInstance->isRecorded() ) {
$menu["clear"] = array( $menu["clear"] = array(
"name"=> _("Remove All Content"), "name"=> _("Remove All Content"),
"icon" => "remove-all-content", "icon" => "remove-all-content",