We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 941f4b0 commit 892d190Copy full SHA for 892d190
1 file changed
summit/code/pages/SummitAppSchedPage.php
@@ -171,10 +171,10 @@ public function init()
171
*/
172
public function ViewEvent(SS_HTTPRequest $request)
173
{
174
- $event = $this->getSummitEntity($request);
175
- $summit_id = $event->SummitID;
176
-
177
- if (is_null($event) || !$event->isPublished() || !ScheduleManager::allowToSee($event)) {
+ $event = $this->getSummitEntity($request);
+ $summit_id = $event->SummitID;
+ $main_schedule_page = SummitAppSchedPage::getBy($event->getSummit());
+ if (is_null($event) || !$event->isPublished() || !ScheduleManager::allowToSee($event) || !$event->SummitID || !$main_schedule_page) {
178
return $this->httpError(404, 'Sorry that event could not be found');
179
}
180
0 commit comments