From af0082c71e19163bce1ed99cdeedc7ef18491938 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Mon, 8 Jan 2024 23:13:52 -0500 Subject: [PATCH] fix(conditions): fix passing context to sync list relations --- openfga_sdk/sync/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openfga_sdk/sync/client/client.py b/openfga_sdk/sync/client/client.py index f465a40..25ae52b 100644 --- a/openfga_sdk/sync/client/client.py +++ b/openfga_sdk/sync/client/client.py @@ -633,8 +633,8 @@ def list_relations(self, body: ClientListRelationsRequest, options: dict[str, st options = set_heading_if_not_set(options, CLIENT_METHOD_HEADER, "ListRelations") options = set_heading_if_not_set(options, CLIENT_BULK_REQUEST_ID_HEADER, str(uuid.uuid4())) - request_body = [construct_check_request( - user=body.user, relation=i, object=body.object, contextual_tuples=body.contextual_tuples) for i in body.relations] + request_body = [construct_check_request(user=body.user, relation=i, object=body.object, + contextual_tuples=body.contextual_tuples, context=body.context) for i in body.relations] result = self.batch_check(request_body, options) # need to filter with the allowed response result_iterator = filter(_check_allowed, result)