diff --git a/enterprise/api/v1/views.py b/enterprise/api/v1/views.py index fb0f820cda..9b7870ba9f 100644 --- a/enterprise/api/v1/views.py +++ b/enterprise/api/v1/views.py @@ -549,7 +549,7 @@ def algolia_key(self, request, *args, **kwargs): raise NotFound(_("User is not linked to any enterprise customers.")) secured_key = SearchClient.generate_secured_api_key( - settings.ENTERPRISE_ALGOLIA_SEARCH_API_KEY, + api_key, { "filters": " OR ".join( f"enterprise_customer_uuids:{enterprise_customer_uuid}"