From ddb812a97654b341da2d35d4695f970b3b555dcb Mon Sep 17 00:00:00 2001 From: dedeibel Date: Fri, 28 Dec 2018 21:39:16 +0100 Subject: Mark optouts in schedule view as optout / no stream --- model/Schedule.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'model/Schedule.php') diff --git a/model/Schedule.php b/model/Schedule.php index 4b5d25e..5ffbeda 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -39,6 +39,13 @@ class Schedule return isset( $mapping[$scheduleRoom] ); } + public function isOptout($event) { + if (isset($event->recording)) { + return $event->recording->optout == 'true'; + } + return false; + } + public function getMappedRoom($scheduleRoom) { $mapping = $this->getScheduleToRoomSlugMapping(); return $this->getConference()->getRoomIfExists( @$mapping[$scheduleRoom] ); @@ -199,6 +206,7 @@ class Schedule 'end' => $end, 'duration' => $duration, 'room_known' => $this->isRoomMapped($name), + 'optout' => $this->isOptout($event), ); $lastend = $end; -- cgit v1.2.3