Skip to content

Commit 892d190

Browse files
committed
[smarcet] - #13741
1 parent 941f4b0 commit 892d190

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

summit/code/pages/SummitAppSchedPage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ public function init()
171171
*/
172172
public function ViewEvent(SS_HTTPRequest $request)
173173
{
174-
$event = $this->getSummitEntity($request);
175-
$summit_id = $event->SummitID;
176-
177-
if (is_null($event) || !$event->isPublished() || !ScheduleManager::allowToSee($event)) {
174+
$event = $this->getSummitEntity($request);
175+
$summit_id = $event->SummitID;
176+
$main_schedule_page = SummitAppSchedPage::getBy($event->getSummit());
177+
if (is_null($event) || !$event->isPublished() || !ScheduleManager::allowToSee($event) || !$event->SummitID || !$main_schedule_page) {
178178
return $this->httpError(404, 'Sorry that event could not be found');
179179
}
180180

0 commit comments

Comments
 (0)