From d930c885e72dafc685a710287d7028626d59a689 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 23 Oct 2020 13:00:28 +0100 Subject: [PATCH] Allow rate limit to be updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bit of code is just a safety check to make sure we don’t inadvertently updating something we shouldn’t (see 0cfe10639a0018553080885569b4ba125341122d for context). `rate_limit` is something we allow the admin app to update now (as of 939029a9bed6c068346d1b62626947cd4b40dda4). --- app/notify_client/service_api_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/notify_client/service_api_client.py b/app/notify_client/service_api_client.py index abc31446b..ac068dd8f 100644 --- a/app/notify_client/service_api_client.py +++ b/app/notify_client/service_api_client.py @@ -107,7 +107,8 @@ class ServiceAPIClient(NotifyAdminAPIClient): 'consent_to_research', 'count_as_live', 'go_live_user', - 'go_live_at' + 'go_live_at', + 'rate_limit', } if disallowed_attributes: raise TypeError('Not allowed to update service attributes: {}'.format(