Skip to content

Commit

Permalink
[smarcet] - #13741
Browse files Browse the repository at this point in the history
  • Loading branch information
smarcet committed Jan 29, 2018
1 parent 941f4b0 commit 892d190
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions summit/code/pages/SummitAppSchedPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public function init()
*/
public function ViewEvent(SS_HTTPRequest $request)
{
$event = $this->getSummitEntity($request);
$summit_id = $event->SummitID;

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) {
return $this->httpError(404, 'Sorry that event could not be found');
}

Expand Down

0 comments on commit 892d190

Please sign in to comment.