mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
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:
@@ -35,7 +35,7 @@
|
||||
|
||||
<p>
|
||||
When you’re 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.
|
||||
|
||||
Reference in New Issue
Block a user