From f63fbaca4d2931f34262ec43ed1f51c3fbb72875 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 9 Aug 2022 09:53:43 +0200 Subject: [PATCH] Do not run control context processor for error pages --- src/pretix/control/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/context.py b/src/pretix/control/context.py index 30d15f988d..736887413d 100644 --- a/src/pretix/control/context.py +++ b/src/pretix/control/context.py @@ -71,7 +71,7 @@ def _default_context(request): except Resolver404: return {} - if not request.path.startswith(get_script_prefix() + 'control'): + if not request.path.startswith(get_script_prefix() + 'control') or not hasattr(request, 'user'): return {} ctx = { 'url_name': url.url_name,