fix: prevent generating offer links while booking is in draft

This commit is contained in:
Björn Fromme committed 2026-08-19 13:00:43 +02:00
1 parent 2601e46ec4
commit 8617bf6c86
11 files changed
+442 -36

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ class OfferController extends AbstractController
*/
private function isCustomerVisible(AccommodationBooking $booking): bool
{
return !$booking->isDraft() && !$booking->isRequested() && !$booking->isDiscarded();
return $booking->isCustomerAccessible() && !$booking->isRequested() && !$booking->isDiscarded();
}
/**