mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Backend management of gift cards
This commit is contained in:
@@ -437,6 +437,16 @@ def get_organizer_navigation(request):
|
||||
'active': 'organizer.device' in url.url_name,
|
||||
'icon': 'tablet',
|
||||
})
|
||||
if 'can_manage_gift_cards' in request.orgapermset:
|
||||
nav.append({
|
||||
'label': _('Gift cards'),
|
||||
'url': reverse('control:organizer.giftcards', kwargs={
|
||||
'organizer': request.organizer.slug
|
||||
}),
|
||||
'active': 'organizer.giftcard' in url.url_name,
|
||||
'icon': 'credit-card',
|
||||
})
|
||||
if 'can_change_organizer_settings' in request.orgapermset:
|
||||
nav.append({
|
||||
'label': _('Webhooks'),
|
||||
'url': reverse('control:organizer.webhooks', kwargs={
|
||||
|
||||
Reference in New Issue
Block a user