Add a button for switching 'upload_document' permission

Adds a platform admin button to the service settings to turn on/off
'upload_document' service permission. The permission allows uploading
documents to document-download-api through the post notification API
endpoint.
This commit is contained in:
Alexey Bezhan
2018-05-01 15:50:35 +01:00
parent 394ef265ed
commit f663092cf4
4 changed files with 21 additions and 0 deletions

View File

@@ -339,6 +339,11 @@
{{ 'Stop user auth type editing' if 'email_auth' in current_service.permissions else 'Allow user auth type editing' }}
</a>
</li>
<li class="bottom-gutter">
<a href="{{ url_for('.service_switch_can_upload_document', service_id=current_service.id) }}" class="button">
{{ 'Stop uploading documents' if 'upload_document' in current_service.permissions else 'Allow to upload documents' }}
</a>
</li>
{% if current_service.active %}
<li class="bottom-gutter">
<a href="{{ url_for('.archive_service', service_id=current_service.id) }}" class="button">