fix: respect environment variable to toggle BPN debug mode

This commit is contained in:
Björn Fromme committed 2026-04-16 17:11:16 +02:00
1 parent 26a19388f3
commit 8250a07c02
1 file changed
+3 -1
+3 -1
View File
@@ -370,6 +370,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']);
}
}