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

@@ -147,6 +147,10 @@ def request_to_go_live(service_id):
@login_required
@user_has_permissions('manage_service')
def submit_request_to_go_live(service_id):
if not current_user.is_gov_user:
abort(403)
form = RequestToGoLiveForm()
if form.validate_on_submit():