From afbe175d15dde0ad70d9ab4d4e1d8ee67c8eba70 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 27 Jun 2017 18:03:25 +0100 Subject: [PATCH] Attach current user to redact client method Not sure how to test this, but we need it. --- app/notify_client/service_api_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/notify_client/service_api_client.py b/app/notify_client/service_api_client.py index 96351ab71..5ee8f7562 100644 --- a/app/notify_client/service_api_client.py +++ b/app/notify_client/service_api_client.py @@ -171,7 +171,9 @@ class ServiceAPIClient(NotifyAdminAPIClient): def redact_service_template(self, service_id, id_): return self.post( "/service/{}/template/{}".format(service_id, id_), - {'redact_personalisation': True} + _attach_current_user( + {'redact_personalisation': True} + ), ) def get_service_template(self, service_id, template_id, version=None, *params):