From bea06bab83181674ca97da43984411c373b8ac24 Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Thu, 12 Sep 2024 11:23:35 -0500 Subject: [PATCH] Fix secret fetching logic in create group secret endpoint --- src/api/src/backend/views/GroupSecrets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/backend/views/GroupSecrets.py b/src/api/src/backend/views/GroupSecrets.py index 6f9f3ac7..d4487ec8 100644 --- a/src/api/src/backend/views/GroupSecrets.py +++ b/src/api/src/backend/views/GroupSecrets.py @@ -73,7 +73,7 @@ def post(self, request, group_id, *_, **__): # Fetch the secret secret = Secret.objects.filter( - secret_id=secret_id, + id=secret_id, tenant_id=request.tenant_id, owner=request.username )