Attach current user to redact client method

Not sure how to test this, but we need it.
This commit is contained in:
Chris Hill-Scott
2017-06-27 18:03:25 +01:00
parent 79217a02bb
commit afbe175d15

View File

@@ -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):