membershipworks: Remove commented out line
This commit is contained in:
parent
99060a8a43
commit
c2b1da743c
@ -412,7 +412,6 @@ class EventInvoicePDFView(AccessMixin, BaseDetailView):
|
|||||||
if request.user.has_perm(
|
if request.user.has_perm(
|
||||||
"membershipworks.view_eventinvoice"
|
"membershipworks.view_eventinvoice"
|
||||||
) or invoice.event.user_is_instructor(request.user):
|
) or invoice.event.user_is_instructor(request.user):
|
||||||
# return HttpResponse(invoice.pdf.path)
|
|
||||||
return sendfile(request, invoice.pdf.path, mimetype="application/pdf")
|
return sendfile(request, invoice.pdf.path, mimetype="application/pdf")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user