fix: use correct ids for user validation
This commit is contained in:
@@ -33,7 +33,7 @@ class BookingVoter extends Voter
|
|||||||
/** @var Booking $booking */
|
/** @var Booking $booking */
|
||||||
$booking = $subject;
|
$booking = $subject;
|
||||||
|
|
||||||
if ($booking->applicant->personId !== $user->getPersonId()) {
|
if ($booking->applicant->addressId !== $user->getAddressId()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user