fix: respect environment variable to toggle BPN debug mode

This commit is contained in:
Björn Fromme committed 2025-09-02 08:40:17 +02:00
1 parent 76aeb101bd
commit 1c2421fb7e
4 files changed
+10 -6

No files matched your search

+3 -1
View File
@@ -146,6 +146,8 @@ class Booking
public function isEditable(): bool
{
return $this->travelDate > new \DateTimeImmutable() && false === in_array($this->status, ['S', 'U']);
$now = new \DateTimeImmutable();
return $this->travelDate > $now && false === in_array($this->status, ['S', 'U']);
}
}