fix: respect environment variable to toggle BPN debug mode
This commit is contained in:
1 parent
26a19388f3
commit
8250a07c02
1 file changed
+3
-1
@@ -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']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user