Commit 5c809e27 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Allow event registration when status is 'in_progress' (not just 'published')

Events that have started (in_progress) should still accept registrations until
registration_closes_at. Previously only 'published' status allowed registration.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 9895319f
......@@ -111,7 +111,7 @@ public function scopeRegistrationOpen($query)
public function isRegistrationOpen(): bool
{
if ($this->status !== EventStatus::Published) {
if (!in_array($this->status, [EventStatus::Published, EventStatus::InProgress])) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment