feat: pre-flight check of agency bookings
addresses #869bqxr4q
This commit is contained in:
1 parent
f9142e3080
commit
b41b19d4c6
26 files changed
+1818
-304
No files matched your search
@@ -112,15 +112,9 @@ class ParticipantDataPrefiller
|
||||
|
||||
/**
|
||||
* Checks if the participant's last name triggers dummy data fill.
|
||||
*
|
||||
* Only matches in create mode to avoid accidental triggering during edits.
|
||||
*/
|
||||
public function isDummyDataFillRequested(ParticipantDto $participant, string $mode): bool
|
||||
{
|
||||
if (BookingDto::MODE_CREATE !== $mode) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return self::TOKEN === $participant->lastName;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user