mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Approvals
This commit is contained in:
@@ -230,6 +230,7 @@ TEST_ITEM_RES = {
|
||||
"max_per_order": None,
|
||||
"checkin_attention": False,
|
||||
"has_variations": False,
|
||||
"require_approval": False,
|
||||
"variations": [],
|
||||
"addons": [],
|
||||
"original_price": None
|
||||
|
||||
@@ -203,6 +203,7 @@ TEST_ORDER_RES = {
|
||||
"vat_id": "",
|
||||
"vat_id_validated": False
|
||||
},
|
||||
"require_approval": False,
|
||||
"positions": [TEST_ORDERPOSITION_RES],
|
||||
"downloads": [],
|
||||
"payments": TEST_PAYMENTS_RES,
|
||||
|
||||
@@ -102,6 +102,8 @@ event_urls = [
|
||||
"orders/ABC/contact",
|
||||
"orders/ABC/comment",
|
||||
"orders/ABC/locale",
|
||||
"orders/ABC/approve",
|
||||
"orders/ABC/deny",
|
||||
"orders/ABC/checkvatid",
|
||||
"orders/ABC/payments/1/cancel",
|
||||
"orders/ABC/payments/1/confirm",
|
||||
@@ -257,6 +259,8 @@ event_permission_urls = [
|
||||
("can_change_orders", "orders/FOO/resend", 405),
|
||||
("can_change_orders", "orders/FOO/invoice", 405),
|
||||
("can_change_orders", "orders/FOO/change", 200),
|
||||
("can_change_orders", "orders/FOO/approve", 200),
|
||||
("can_change_orders", "orders/FOO/deny", 200),
|
||||
("can_change_orders", "orders/FOO/comment", 405),
|
||||
("can_change_orders", "orders/FOO/locale", 200),
|
||||
("can_view_orders", "orders/FOO/answer/5/", 404),
|
||||
|
||||
@@ -146,6 +146,8 @@ def logged_in_client(client, event):
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/comment', 405),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/change', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/locale', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/approve', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/deny', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/payments/{payment}/cancel', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/payments/{payment}/confirm', 200),
|
||||
('/control/event/{orga}/{event}/orders/{order_code}/refund', 200),
|
||||
|
||||
Reference in New Issue
Block a user