mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
Add tenant filtering to LighthouseConfig queries
Co-authored-by: Víctor Fernández Poyatos <vicferpoy@gmail.com>
This commit is contained in:
committed by
Chandrapal Badshah
parent
c459cde1ff
commit
1d9a05fa2f
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user