mirror of
https://github.com/pretix/pretix.git
synced 2026-04-28 00:02:37 +00:00
PDF Output: Prevent subsequent exception on permission errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user