diff --git a/.env b/.env index 953f939..6629f1a 100644 --- a/.env +++ b/.env @@ -59,6 +59,8 @@ PRIVACY_POLICY_URL='https://roodjongeren.nl/privacybeleid/' LISTMONK_URL='https://listmonk.roodjongeren.nl/admin' USE_MIDDLE_NAME=true CONTRIBUTION_ENABLED=true +SEND_FRESH_MEMBER_EMAIL_TO_BOARD=true +SEND_FRESH_MEMBER_EMAIL_TO_CONTACT_PEOPLE=false # Set to https in production environment SECURE_SCHEME='http' diff --git a/config/services.yaml b/config/services.yaml index b8b134b..d892c12 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -16,7 +16,7 @@ parameters: app.listmonkUrl: '%env(string:LISTMONK_URL)%' app.useMiddleName: '%env(bool:USE_MIDDLE_NAME)%' app.sendFreshMemberEmailToBoard: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_BOARD)%' - app.sendFreshMemberEmailToContactPeople: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_CONTACT_PEOPLE)%' + app.sendFreshMemberEmailToDivisionEmail: '%env(bool:SEND_FRESH_MEMBER_EMAIL_TO_DIVISION_EMAIL)%' app.contributionEnabled: '%env(bool:CONTRIBUTION_ENABLED)%' router.request_context.scheme: '%env(SECURE_SCHEME)%' asset.request_context.secure: true diff --git a/src/Controller/MemberController.php b/src/Controller/MemberController.php index 0d4ec14..9dfc52c 100644 --- a/src/Controller/MemberController.php +++ b/src/Controller/MemberController.php @@ -217,7 +217,7 @@ public function handleRedirect(Request $request, string $customerId): Response $this->mailer->send($message); } - if ($this->getParameter('app.sendFreshMemberEmailToContactPeople') && $membershipApplication->getPreferredDivision() !== null) { + if ($this->getParameter('app.sendFreshMemberEmailToDivisionEmail') && $membershipApplication->getPreferredDivision() !== null) { $division = $membershipApplication->getPreferredDivision(); $message = (new Email()) ->subject("Er is een nieuw lid die geaccepteerd kan worden")