mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user