Check for reply to email address before going live

We require that a user has a real reply-to email address before going
live. We can partially automate this by at least telling users who
haven’t done this.

This only applies for users that have email templates; we shouldn’t
bother users who aren’t going to send emails about this.
This commit is contained in:
Chris Hill-Scott
2018-02-27 14:25:20 +00:00
parent 7be08e2f74
commit d0ffff9e02
3 changed files with 47 additions and 8 deletions

View File

@@ -172,6 +172,12 @@ def request_to_go_live(service_id):
has_templates=(
service_api_client.count_service_templates(service_id) > 0
),
has_email_templates=(
service_api_client.count_service_templates(service_id, template_type='email') > 0
),
has_email_reply_to_address=bool(
service_api_client.get_reply_to_email_addresses(service_id)
)
)