Skip to content

Commit

Permalink
Merge pull request #492 from tighten/ajm/constrain-searchable-confere…
Browse files Browse the repository at this point in the history
…nces

Constrain conference search to future conferences
  • Loading branch information
andrewmile authored Nov 8, 2023
2 parents acfc762 + 1a5365b commit e616b04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Conference.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ public function scopeWhereDismissedBy($query, $user)
});
}

public function shouldBeSearchable(): bool
{
return $this->starts_at > Carbon::now();
}

/**
* Whether CFP is currently open
*
Expand Down

0 comments on commit e616b04

Please sign in to comment.