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

@@ -40,6 +40,11 @@ def get_service_settings_page(
({'permissions': ['letter']},
'.service_switch_can_send_precompiled_letter', {}, 'Allow to send precompiled letters'),
({'permissions': ['upload_document']},
'.service_switch_can_upload_document', {}, 'Stop uploading documents'),
({'permissions': []},
'.service_switch_can_upload_document', {}, 'Allow to upload documents'),
({'permissions': ['sms']}, '.service_set_inbound_number', {'set_inbound_sms': True}, 'Allow inbound sms'),
({'active': True}, '.archive_service', {}, 'Archive service'),