mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Discounts (#2510)
This commit is contained in:
@@ -113,6 +113,12 @@ event_urls = [
|
||||
"categories/2/up",
|
||||
"categories/2/down",
|
||||
"categories/2/delete",
|
||||
"discounts/",
|
||||
"discounts/add",
|
||||
"discounts/2/",
|
||||
"discounts/2/up",
|
||||
"discounts/2/down",
|
||||
"discounts/2/delete",
|
||||
"questions/",
|
||||
"questions/2/delete",
|
||||
"questions/2/",
|
||||
@@ -325,6 +331,16 @@ event_permission_urls = [
|
||||
("can_change_items", "quotas/2/change", 404, HTTP_GET),
|
||||
("can_change_items", "quotas/2/delete", 404, HTTP_GET),
|
||||
("can_change_items", "quotas/add", 200, HTTP_GET),
|
||||
# ("can_change_items", "discounts/", 200),
|
||||
# We don't have to create categories and similar objects
|
||||
# for testing this, it is enough to test that a 404 error
|
||||
# is returned instead of a 403 one.
|
||||
("can_change_items", "discounts/2/", 404, HTTP_GET),
|
||||
("can_change_items", "discounts/2/delete", 404, HTTP_GET),
|
||||
("can_change_items", "discounts/2/up", 404, HTTP_POST),
|
||||
("can_change_items", "discounts/2/down", 404, HTTP_POST),
|
||||
("can_change_items", "discounts/reorder", 400, HTTP_POST),
|
||||
("can_change_items", "discounts/add", 200, HTTP_GET),
|
||||
("can_change_event_settings", "subevents/", 200, HTTP_GET),
|
||||
("can_change_event_settings", "subevents/2/", 404, HTTP_GET),
|
||||
("can_change_event_settings", "subevents/2/delete", 404, HTTP_GET),
|
||||
|
||||
Reference in New Issue
Block a user