fix: use correct ids for user validation

This commit is contained in:
Björn Fromme
2025-09-10 16:26:58 +02:00
parent b197152f12
commit b7638f5e9e
+1 -1
View File
@@ -33,7 +33,7 @@ class BookingVoter extends Voter
/** @var Booking $booking */
$booking = $subject;
if ($booking->applicant->personId !== $user->getPersonId()) {
if ($booking->applicant->addressId !== $user->getAddressId()) {
return false;
}