feat: restrict access to booking edit and invoice to applicant

This commit is contained in:
Björn Fromme
2025-09-10 15:30:36 +02:00
parent 297becf7a0
commit b197152f12
4 changed files with 58 additions and 54 deletions
+1
View File
@@ -8,6 +8,7 @@ class Booking
public ?int $agencyId = null;
public ?int $bookingNumber = null;
public ?string $status = null;
public ?int $applicantId = null;
public ?PersonalData $applicant = null;
public ?int $participantCount = null;
public ?float $price = null;
@@ -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'));