Skip to content

Commit

Permalink
fix: permission check for stripe self checkout (#379)
Browse files Browse the repository at this point in the history
* fix: permission check for stripe self checkout

* chore: bump version
  • Loading branch information
rohan-chaturvedi authored Oct 15, 2024
1 parent 03e5076 commit 8ca9b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/ee/billing/graphene/mutations/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def mutate(self, info, organisation_id, billing_period):

organisation = Organisation.objects.get(id=organisation_id)

if not user_has_permission(info.context.user, "update", "Billing"):
if not user_has_permission(info.context.user, "update", "Billing", organisation):
raise GraphQLError("You don't have permission to update Billing")

seats = get_organisation_seats(organisation)
Expand Down
2 changes: 1 addition & 1 deletion backend/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.32.0
v2.32.1

0 comments on commit 8ca9b19

Please sign in to comment.