From 6e7af4c64bddc25b63393084442613effafc780c Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 10 Oct 2022 12:36:27 +0200 Subject: [PATCH] API: Add device info 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 884b0e9e0a..f9bbca7802 100644 --- a/src/pretix/api/auth/devicesecurity.py +++ b/src/pretix/api/auth/devicesecurity.py @@ -46,6 +46,7 @@ class PretixScanSecurityProfile(AllowListSecurityProfile): ('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'), @@ -80,6 +81,7 @@ class PretixScanNoSyncNoSearchSecurityProfile(AllowListSecurityProfile): ('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'), @@ -112,6 +114,7 @@ class PretixScanNoSyncSecurityProfile(AllowListSecurityProfile): ('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'), @@ -145,6 +148,7 @@ class PretixPosSecurityProfile(AllowListSecurityProfile): ('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'),