Skip to content

Commit

Permalink
fix: allow coorg, owner to download invoice/tickets for event orders (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavk96 committed Jul 12, 2019
1 parent 353c6f5 commit 8bb761f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def first_access_panel(self):

def can_download_tickets(self, order):
permissible_users = [holder.id for holder in order.ticket_holders] + [order.user.id]
if self.is_staff or self.is_organizer(order.event.id) or self.id in permissible_users:
if self.is_staff or self.has_event_access(order.event.id) or self.id in permissible_users:
return True
return False

Expand Down

0 comments on commit 8bb761f

Please sign in to comment.