Only show ‘Request to go live’ link to admin users

Only users with the manage service permission can access this page, so
we should only show the link to users that have this permission.
This commit is contained in:
Chris Hill-Scott
2016-09-07 13:58:47 +01:00
parent 9cf3854ac6
commit 385221cf5b

View File

@@ -35,7 +35,7 @@
<p>
When youre ready we can
{% if current_service %}
{% if current_service and current_user.has_permissions(['manage_settings'], admin_override=True) %}
<a href="{{ url_for('main.service_request_to_go_live', service_id=current_service.id) }}">remove these restrictions</a>.
{% else %}
remove these restrictions.