fix: restore unintended file changes after master flatten rewrite

This commit is contained in:
Björn Fromme
2026-03-16 14:15:51 +01:00
parent 49ea562322
commit 6d9265de0f
7 changed files with 41 additions and 3 deletions
@@ -21,6 +21,7 @@ class BookingsParser extends AbstractParser
$booking = new Booking();
$booking->id = $this->getIntOrNullValue($node->filterXPath('//id'));
$booking->applicantId = $this->getIntOrNullValue($node->filterXPath('//idadresse_anmelder'));
$booking->bookingNumber = $this->getIntOrNullValue($node->filterXPath('//vorgangsnummer'));
$booking->status = $this->getStringOrNullValue($node->filterXPath('//status'));
$booking->participantCount = $this->getIntOrNullValue($node->filterXPath('//personen'));
@@ -35,6 +35,9 @@ class ServicesParser extends AbstractParser
$service->direction = $node->attr('richtung');
}
$service->ageFrom = $this->getIntOrNullValue($node->filterXPath('//altervon'));
$service->ageTo = $this->getIntOrNullValue($node->filterXPath('//alterbis'));
$services[$service->id] = $service;
});
+1 -1
View File
@@ -42,7 +42,7 @@ class BookingVoter extends Voter
/** @var Booking $booking */
$booking = $subject;
if ($booking->applicant->personId !== $user->getPersonId()) {
if ($booking->applicant->addressId !== $user->getAddressId()) {
return false;
}