From 73469c10673072f954c92a95a6b52b68ec1a686e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 7 Oct 2016 15:01:49 +0100 Subject: [PATCH] Make whitelist available to live services Why would a live servie need the whitelist? Because the team key will also let you send to members of your whitelist (so this commit relabels it to say so). --- app/main/views/api_keys.py | 2 +- app/templates/views/api/index.html | 27 +++++++++------------------ app/templates/views/api/keys.html | 2 +- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/app/main/views/api_keys.py b/app/main/views/api_keys.py index a4e3a2f17..f4333fca1 100644 --- a/app/main/views/api_keys.py +++ b/app/main/views/api_keys.py @@ -72,7 +72,7 @@ def create_api_key(service_id): ', once this service is not in trial mode' if current_service['restricted'] else '' )), (KEY_TYPE_TEST, 'Simulate sending messages to anyone'), - (KEY_TYPE_TEAM, 'Only send messages to members of your team') + (KEY_TYPE_TEAM, 'Only send messages to your team or whitelist') ] if form.validate_on_submit(): secret = api_key_api_client.create_api_key( diff --git a/app/templates/views/api/index.html b/app/templates/views/api/index.html index fb114b032..a446e9dbb 100644 --- a/app/templates/views/api/index.html +++ b/app/templates/views/api/index.html @@ -23,24 +23,15 @@ {% endif %}
diff --git a/app/templates/views/api/keys.html b/app/templates/views/api/keys.html index 2cafa029f..a18419156 100644 --- a/app/templates/views/api/keys.html +++ b/app/templates/views/api/keys.html @@ -38,7 +38,7 @@ {% if item.key_type == 'normal' %} Normal {% elif item.key_type == 'team' %} - Only sends to team members + Only sends to team members or whitelist {% elif item.key_type == 'test' %} Simulates sending messages {% endif %}