From ba1f6ed0545be1a68275ace588f9c07a6e8a0b94 Mon Sep 17 00:00:00 2001 From: denise Date: Fri, 2 Nov 2012 13:24:47 -0400 Subject: [PATCH] CC-4374: Nowplayling page: Cannot remove tracks from recording show -fixed by disallowing dragging into recording shows --- airtime_mvc/application/models/Scheduler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index def7fb045..356210b74 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -104,6 +104,10 @@ class Application_Model_Scheduler if ($this->checkUserPermissions && $this->user->canSchedule($show->getDbId()) === false) { throw new Exception("You are not allowed to schedule show {$show->getDbName()}."); } + + if ($instance->getDbRecord()) { + throw new Exception("You cannot add files to recording shows."); + } $showEndEpoch = floatval($instance->getDbEnds("U.u"));