forked from CGM_Public/pretix_original
Allow voucher access for pretixPOS
This commit is contained in:
@@ -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'),
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user