Allow voucher access for pretixPOS

This commit is contained in:
Raphael Michel
2022-05-09 17:12:10 +02:00
parent 0d9101e592
commit 2371373415
2 changed files with 3 additions and 0 deletions

View File

@@ -151,6 +151,8 @@ class PretixPosSecurityProfile(AllowListSecurityProfile):
('GET', 'api-v1:ticketlayoutitem-list'), ('GET', 'api-v1:ticketlayoutitem-list'),
('GET', 'api-v1:badgelayout-list'), ('GET', 'api-v1:badgelayout-list'),
('GET', 'api-v1:badgeitem-list'), ('GET', 'api-v1:badgeitem-list'),
('GET', 'api-v1:voucher-list'),
('GET', 'api-v1:voucher-detail'),
('GET', 'api-v1:order-list'), ('GET', 'api-v1:order-list'),
('POST', 'api-v1:order-list'), ('POST', 'api-v1:order-list'),
('GET', 'api-v1:order-detail'), ('GET', 'api-v1:order-detail'),

View File

@@ -179,6 +179,7 @@ class Device(LoggedModel):
return { return {
'can_view_orders', 'can_view_orders',
'can_change_orders', 'can_change_orders',
'can_view_vouchers',
'can_manage_gift_cards' 'can_manage_gift_cards'
} }