Skip to content

Commit

Permalink
Add org_member_required decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Oct 12, 2023
1 parent 6a9de53 commit 90c5131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commcare_connect/opportunity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def payment_import(request, org_slug=None, pk=None):
return redirect("opportunity:detail", org_slug, pk)


@org_member_required
def add_payment_unit(request, org_slug=None, pk=None):
opportunity = get_object_or_404(Opportunity, organization=request.org, id=pk)
deliver_units = DeliverUnit.objects.filter(app=opportunity.deliver_app, payment_unit__isnull=True)
Expand Down

0 comments on commit 90c5131

Please sign in to comment.