From 9b3ea3656f1758880a5e8e97821a9313da83d43e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 25 Sep 2017 10:22:09 +0200 Subject: [PATCH] PDF Output: Prevent subsequent exception on permission errors --- src/pretix/plugins/ticketoutputpdf/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/ticketoutputpdf/signals.py b/src/pretix/plugins/ticketoutputpdf/signals.py index c16b6d16e..3cd8af5e7 100644 --- a/src/pretix/plugins/ticketoutputpdf/signals.py +++ b/src/pretix/plugins/ticketoutputpdf/signals.py @@ -26,7 +26,7 @@ def register_data(sender, **kwargs): @receiver(html_head, dispatch_uid="ticketoutputpdf_html_head") def html_head_presale(sender, request=None, **kwargs): url = resolve(request.path_info) - if url.namespace == 'plugins:ticketoutputpdf': + if url.namespace == 'plugins:ticketoutputpdf' and getattr(request, 'organizer', None): template = get_template('pretixplugins/ticketoutputpdf/control_head.html') return template.render({ 'request': request