From 1d9a05fa2ffb03b88982ac26677d649d074104d4 Mon Sep 17 00:00:00 2001 From: Chandrapal Badshah Date: Tue, 29 Apr 2025 19:56:32 +0530 Subject: [PATCH] Add tenant filtering to LighthouseConfig queries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Víctor Fernández Poyatos --- api/src/backend/api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/backend/api/v1/views.py b/api/src/backend/api/v1/views.py index 914fe7f876..056e90e2b8 100644 --- a/api/src/backend/api/v1/views.py +++ b/api/src/backend/api/v1/views.py @@ -2797,7 +2797,7 @@ class LighthouseConfigViewSet(BaseRLSViewSet): ordering = ["-inserted_at"] def get_queryset(self): - return LighthouseConfig.objects.all() + return LighthouseConfig.objects.filter(tenant_id=self.request.tenant_id) def get_serializer_class(self): if self.action == "create":