fix: use correct ids for user validation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user