mirror of
https://github.com/pretix/pretix.git
synced 2026-08-09 10:37:50 +00:00
Show export page even without orders permission
This commit is contained in:
@@ -273,6 +273,16 @@ def get_event_navigation(request: HttpRequest):
|
||||
'icon': 'shopping-cart',
|
||||
'children': children
|
||||
})
|
||||
else:
|
||||
nav.append({
|
||||
'label': _('Export'),
|
||||
'url': reverse('control:event.orders.export', kwargs={
|
||||
'event': request.event.slug,
|
||||
'organizer': request.event.organizer.slug,
|
||||
}),
|
||||
'active': 'event.orders.export' in url.url_name,
|
||||
'icon': 'download',
|
||||
})
|
||||
|
||||
if 'event.vouchers:read' in request.eventpermset:
|
||||
nav.append({
|
||||
|
||||
@@ -115,5 +115,9 @@
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% empty %}
|
||||
<p class="empty-collection">
|
||||
{% trans "There are no exporters available for you." %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -115,5 +115,9 @@
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% empty %}
|
||||
<p class="empty-collection">
|
||||
{% trans "There are no exporters available for you." %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user