Skip to content

Commit

Permalink
Fix create group secret endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Sep 12, 2024
1 parent 03bd625 commit da78543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/src/backend/views/GroupSecrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def post(self, request, group_id, *_, **__):
return Forbidden(message="You do not have access to this group")

# Fetch the secret
secret = Secret.object.filter(
secret = Secret.objects.filter(
secret_id=secret_id,
tenant_id=request.tenant_id,
owner=request.username
Expand All @@ -89,7 +89,7 @@ def post(self, request, group_id, *_, **__):
return Conflict(message=f"A GroupSecret already exists with id '{group_secret_id}'")

# Create group secret
group_secret = GroupSecret.object.create(
group_secret = GroupSecret.objects.create(
id=group_secret_id,
group=group,
secret=secret
Expand Down

0 comments on commit da78543

Please sign in to comment.