fix: respect environment variable to toggle BPN debug mode

This commit is contained in:
Björn Fromme
2025-09-02 08:40:17 +02:00
parent 76aeb101bd
commit 1c2421fb7e
4 changed files with 10 additions and 6 deletions
+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']);
}
}