forked from CGM_Public/pretix_original
Add file upload to security profiles
This commit is contained in:
@@ -42,6 +42,7 @@ class PretixScanSecurityProfile(AllowListSecurityProfile):
|
|||||||
('GET', 'api-v1:revokedsecrets-list'),
|
('GET', 'api-v1:revokedsecrets-list'),
|
||||||
('GET', 'api-v1:order-list'),
|
('GET', 'api-v1:order-list'),
|
||||||
('GET', 'api-v1:event.settings'),
|
('GET', 'api-v1:event.settings'),
|
||||||
|
('POST', 'api-v1:upload'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -68,6 +69,7 @@ class PretixScanNoSyncSecurityProfile(AllowListSecurityProfile):
|
|||||||
('POST', 'api-v1:checkinlistpos-redeem'),
|
('POST', 'api-v1:checkinlistpos-redeem'),
|
||||||
('GET', 'api-v1:revokedsecrets-list'),
|
('GET', 'api-v1:revokedsecrets-list'),
|
||||||
('GET', 'api-v1:event.settings'),
|
('GET', 'api-v1:event.settings'),
|
||||||
|
('POST', 'api-v1:upload'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -113,6 +115,7 @@ class PretixPosSecurityProfile(AllowListSecurityProfile):
|
|||||||
('GET', 'plugins:pretix_seating:event.event.subevent'),
|
('GET', 'plugins:pretix_seating:event.event.subevent'),
|
||||||
('GET', 'plugins:pretix_seating:event.plan'),
|
('GET', 'plugins:pretix_seating:event.plan'),
|
||||||
('GET', 'plugins:pretix_seating:selection.simple'),
|
('GET', 'plugins:pretix_seating:selection.simple'),
|
||||||
|
('POST', 'api-v1:upload'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ urlpatterns = [
|
|||||||
url(r"^device/roll$", device.RollKeyView.as_view(), name="device.roll"),
|
url(r"^device/roll$", device.RollKeyView.as_view(), name="device.roll"),
|
||||||
url(r"^device/revoke$", device.RevokeKeyView.as_view(), name="device.revoke"),
|
url(r"^device/revoke$", device.RevokeKeyView.as_view(), name="device.revoke"),
|
||||||
url(r"^device/eventselection$", device.EventSelectionView.as_view(), name="device.eventselection"),
|
url(r"^device/eventselection$", device.EventSelectionView.as_view(), name="device.eventselection"),
|
||||||
url(r"^upload$", upload.UploadView.as_view(), name="user.me"),
|
url(r"^upload$", upload.UploadView.as_view(), name="upload"),
|
||||||
url(r"^me$", user.MeView.as_view(), name="user.me"),
|
url(r"^me$", user.MeView.as_view(), name="user.me"),
|
||||||
url(r"^version$", version.VersionView.as_view(), name="version"),
|
url(r"^version$", version.VersionView.as_view(), name="version"),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user