wip: group inquiries and booking
This commit is contained in:
1 parent
597b169b17
commit
732a0f1d19
33 files changed
+644
-95
No files matched your search
@@ -34,6 +34,10 @@ class OfferController extends AbstractController
|
||||
}
|
||||
|
||||
if ($request->isMethod(Request::METHOD_POST) && $booking->isInquiry()) {
|
||||
if (!$this->isCsrfTokenValid('accept_accommodation_offer_'.$booking->getUuid(), $request->request->getString('_token'))) {
|
||||
throw $this->createAccessDeniedException('Invalid CSRF token.');
|
||||
}
|
||||
|
||||
$this->bookingService->acceptBooking($booking);
|
||||
|
||||
return new RedirectResponse($request->getUri());
|
||||
|
||||
Reference in new issue
Block a user