fix: use correct ids for user validation
This commit is contained in:
1 parent
b197152f12
commit
b7638f5e9e
1 file changed
+1
-1
@@ -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