From fed5097708897a8a84d897ff9712fd986bc90c9e Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Mon, 5 Feb 2024 14:01:42 +0100 Subject: [PATCH] CheckIn: Only run check_rules_qs conditionally on provided boolean --- src/pretix/api/views/checkin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/api/views/checkin.py b/src/pretix/api/views/checkin.py index 325f5017f3..866e7a639d 100644 --- a/src/pretix/api/views/checkin.py +++ b/src/pretix/api/views/checkin.py @@ -285,6 +285,8 @@ with scopes_disabled(): return queryset.filter(last_checked_in__isnull=not value) def check_rules_qs(self, queryset, name, value): + if not value: + return queryset if not self.checkinlist.rules: return queryset return queryset.filter(