Skip to content
Snippets Groups Projects
Verified Commit e5e7e850 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Only email sponsor when action is needed

We no longer email sponsors(hosts) if they don't need to verify any of
the information provided by their guest.
parent 3b3b11ab
No related branches found
No related tags found
1 merge request!352Only email sponsor when action is needed
Pipeline #160965 passed
......@@ -341,7 +341,8 @@ class InvitedGuestView(GenericAPIView):
invite_link.expire = timezone.now()
invite_link.save()
# Send an email to the sponsor
# Send an email to the sponsor if the guest needs to be verified
if not person.is_verified:
confirmmailer = ConfirmGuest()
confirmmailer.send_confirmation_mail_from_link(invite_link)
return Response(status=status.HTTP_200_OK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment