Don’t let non-government users request to go live

Only users who work for government can accept the terms of use. This
will save us from having to email these requesters back telling them
they need to find someone else to submit the request.
This commit is contained in:
Chris Hill-Scott
2018-12-12 12:54:22 +00:00
parent 126db71de6
commit 9a70f6a7f4
4 changed files with 85 additions and 19 deletions

View File

@@ -47,12 +47,18 @@
) }}
{% endif %}
{% endcall %}
<p>
You also need to accept our <a href="{{ url_for('.terms') }}">terms of use</a>.
</p>
<p>
<a href="{{ url_for('main.submit_request_to_go_live', service_id=current_service.id) }}" class="button">Continue</a>
</p>
{% if current_user.is_gov_user %}
<p>
You also need to accept our <a href="{{ url_for('.terms') }}">terms of use</a>.
</p>
<p>
<a href="{{ url_for('main.submit_request_to_go_live', service_id=current_service.id) }}" class="button">Continue</a>
</p>
{% else %}
<p>
Only team members with a government email address can request to go live.
</p>
{% endif %}
</div>
</div>
{% endblock %}