From 2a9eb2772a428b8c9c171df9c1d52e9ff549b203 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 10 Jun 2022 09:24:47 +0200 Subject: [PATCH] Add idempotency.query to all security profiles --- src/pretix/api/auth/devicesecurity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pretix/api/auth/devicesecurity.py b/src/pretix/api/auth/devicesecurity.py index c89618756..77acb66e4 100644 --- a/src/pretix/api/auth/devicesecurity.py +++ b/src/pretix/api/auth/devicesecurity.py @@ -45,6 +45,7 @@ class PretixScanSecurityProfile(AllowListSecurityProfile): allowlist = ( ('GET', 'api-v1:version'), ('GET', 'api-v1:device.eventselection'), + ('GET', 'api-v1:idempotency.query'), ('POST', 'api-v1:device.update'), ('POST', 'api-v1:device.revoke'), ('POST', 'api-v1:device.roll'), @@ -76,6 +77,7 @@ class PretixScanNoSyncNoSearchSecurityProfile(AllowListSecurityProfile): allowlist = ( ('GET', 'api-v1:version'), ('GET', 'api-v1:device.eventselection'), + ('GET', 'api-v1:idempotency.query'), ('POST', 'api-v1:device.update'), ('POST', 'api-v1:device.revoke'), ('POST', 'api-v1:device.roll'), @@ -105,6 +107,7 @@ class PretixScanNoSyncSecurityProfile(AllowListSecurityProfile): allowlist = ( ('GET', 'api-v1:version'), ('GET', 'api-v1:device.eventselection'), + ('GET', 'api-v1:idempotency.query'), ('POST', 'api-v1:device.update'), ('POST', 'api-v1:device.revoke'), ('POST', 'api-v1:device.roll'), @@ -135,6 +138,7 @@ class PretixPosSecurityProfile(AllowListSecurityProfile): allowlist = ( ('GET', 'api-v1:version'), ('GET', 'api-v1:device.eventselection'), + ('GET', 'api-v1:idempotency.query'), ('POST', 'api-v1:device.update'), ('POST', 'api-v1:device.revoke'), ('POST', 'api-v1:device.roll'),