From 5f724fa780cd498c14e6809bb26e2b37f965ce64 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 11 Nov 2024 15:39:34 +0100 Subject: [PATCH] REmove dead class --- src/pretix/api/auth/devicesecurity.py | 76 --------------------------- 1 file changed, 76 deletions(-) diff --git a/src/pretix/api/auth/devicesecurity.py b/src/pretix/api/auth/devicesecurity.py index c5fbd2f9c6..d6be03e72c 100644 --- a/src/pretix/api/auth/devicesecurity.py +++ b/src/pretix/api/auth/devicesecurity.py @@ -184,82 +184,6 @@ class PretixScanNoSyncSecurityProfile(AllowListSecurityProfile): ) -class PretixPosSecurityProfile(AllowListSecurityProfile): - identifier = 'pretixpos' - verbose_name = _('pretixPOS') - allowlist = ( - ('GET', 'api-v1:version'), - ('GET', 'api-v1:device.eventselection'), - ('GET', 'api-v1:idempotency.query'), - ('GET', 'api-v1:device.info'), - ('POST', 'api-v1:device.update'), - ('POST', 'api-v1:device.revoke'), - ('POST', 'api-v1:device.roll'), - ('GET', 'api-v1:event-list'), - ('GET', 'api-v1:event-detail'), - ('GET', 'api-v1:subevent-list'), - ('GET', 'api-v1:subevent-detail'), - ('GET', 'api-v1:itemcategory-list'), - ('GET', 'api-v1:item-list'), - ('GET', 'api-v1:question-list'), - ('GET', 'api-v1:quota-list'), - ('GET', 'api-v1:taxrule-list'), - ('GET', 'api-v1:ticketlayout-list'), - ('GET', 'api-v1:ticketlayoutitem-list'), - ('GET', 'api-v1:badgelayout-list'), - ('GET', 'api-v1:badgeitem-list'), - ('GET', 'api-v1:voucher-list'), - ('GET', 'api-v1:voucher-detail'), - ('GET', 'api-v1:order-list'), - ('POST', 'api-v1:order-list'), - ('GET', 'api-v1:order-detail'), - ('DELETE', 'api-v1:orderposition-detail'), - ('PATCH', 'api-v1:orderposition-detail'), - ('GET', 'api-v1:orderposition-list'), - ('GET', 'api-v1:orderposition-answer'), - ('GET', 'api-v1:orderposition-pdf_image'), - ('POST', 'api-v1:orderposition-printlog'), - ('POST', 'api-v1:order-mark-canceled'), - ('POST', 'api-v1:orderpayment-list'), - ('POST', 'api-v1:orderrefund-list'), - ('POST', 'api-v1:orderrefund-done'), - ('POST', 'api-v1:cartposition-list'), - ('POST', 'api-v1:cartposition-bulk-create'), - ('GET', 'api-v1:checkinlist-list'), - ('POST', 'api-v1:checkinlistpos-redeem'), - ('POST', 'plugins:pretix_posbackend:order.posprintlog'), - ('POST', 'plugins:pretix_posbackend:order.poslock'), - ('DELETE', 'plugins:pretix_posbackend:order.poslock'), - ('DELETE', 'api-v1:cartposition-detail'), - ('GET', 'api-v1:giftcard-list'), - ('POST', 'api-v1:giftcard-transact'), - ('PATCH', 'api-v1:giftcard-detail'), - ('GET', 'plugins:pretix_posbackend:posclosing-list'), - ('POST', 'plugins:pretix_posbackend:posreceipt-list'), - ('POST', 'plugins:pretix_posbackend:posclosing-list'), - ('POST', 'plugins:pretix_posbackend:posdebugdump-list'), - ('POST', 'plugins:pretix_posbackend:posdebuglogentry-list'), - ('POST', 'plugins:pretix_posbackend:posdebuglogentry-bulk-create'), - ('GET', 'plugins:pretix_posbackend:poscashier-list'), - ('POST', 'plugins:pretix_posbackend:stripeterminal.token'), - ('POST', 'plugins:pretix_posbackend:stripeterminal.paymentintent'), - ('PUT', 'plugins:pretix_posbackend:file.upload'), - ('GET', 'api-v1:revokedsecrets-list'), - ('GET', 'api-v1:blockedsecrets-list'), - ('GET', 'api-v1:event.settings'), - ('GET', 'plugins:pretix_seating:event.event'), - ('GET', 'plugins:pretix_seating:event.event.subevent'), - ('GET', 'plugins:pretix_seating:event.plan'), - ('GET', 'plugins:pretix_seating:selection.simple'), - ('POST', 'api-v1:upload'), - ('POST', 'api-v1:checkinrpc.redeem'), - ('GET', 'api-v1:checkinrpc.search'), - ('POST', 'api-v1:reusablemedium-lookup'), - ('GET', 'api-v1:reusablemedium-list'), - ('POST', 'api-v1:reusablemedium-list'), - ) - - def get_all_security_profiles(): global _ALL_PROFILES