Give platform admin users visibilty of API pages

Platform admins should be able to see what’s going on with a service’s
API integration, including:
- messages sent
- contents of whitelist
- names of keys

They should also be able to revoke keys in an emergency.

The only thing they _shouldn’t_ be able to do is create new keys
(because then they’d be able to send messages as the service).
This commit is contained in:
Chris Hill-Scott
2016-09-29 12:55:25 +01:00
parent ee6c4909b1
commit 46426217f9
2 changed files with 6 additions and 6 deletions

View File

@@ -57,7 +57,7 @@
{% elif current_user.has_permissions(['view_activity']) %}
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}">Team members</a></li>
{% endif %}
{% if current_user.has_permissions(['manage_api_keys']) %}
{% if current_user.has_permissions(['manage_api_keys'], admin_override=True) %}
<li><a href="{{ url_for('.api_integration', service_id=current_service.id) }}">API integration</a></li>
{% endif %}
</ul>