mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 23:51:22 -04:00
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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user