From a61344395af786ae26fa51eb6f0c4d5d2e250fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnrher?= Date: Thu, 27 Aug 2026 11:22:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Anmeldung=20f=C3=BCr=20Personen=20=C3=9C1?= =?UTF-8?q?8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Domains/Event/Actions/SignUp/SignUpCommand.php | 8 ++++++-- artisan | 0 docker/php/composer.phar | Bin 3 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 artisan mode change 100644 => 100755 docker/php/composer.phar diff --git a/app/Domains/Event/Actions/SignUp/SignUpCommand.php b/app/Domains/Event/Actions/SignUp/SignUpCommand.php index 7196acf..b0db8a3 100644 --- a/app/Domains/Event/Actions/SignUp/SignUpCommand.php +++ b/app/Domains/Event/Actions/SignUp/SignUpCommand.php @@ -68,8 +68,12 @@ class SignUpCommand { 'medications' => $this->request->medications, 'tetanus_vaccination' => $this->request->tetanus_vaccination, 'eating_habit' => $eatingHabit, - 'swimming_permission' => $participantAge->isfullAged() ? 'SWIMMING_PERMISSION_ALLOWED' : $this->request->swimming_permission, - 'first_aid_permission' => $participantAge->isfullAged() ? 'FIRST_AID_PERMISSION_ALLOWED' : $this->request->first_aid_permission, + 'swimming_permission' => ($participantAge->isfullAged() || $this->request->swimming_permission === '-1') + ? 'SWIMMING_PERMISSION_ALLOWED' + : $this->request->swimming_permission, + 'first_aid_permission' => ($participantAge->isfullAged() || $this->request->first_aid_permission === '-1') + ? 'FIRST_AID_PERMISSION_ALLOWED' + : $this->request->first_aid_permission, 'foto_socialmedia' => $this->request->foto_socialmedia, 'foto_print' => $this->request->foto_print, 'foto_webseite' => $this->request->foto_webseite, diff --git a/artisan b/artisan old mode 100644 new mode 100755 diff --git a/docker/php/composer.phar b/docker/php/composer.phar old mode 100644 new mode 100755