Multi export: Allow restriction to organizer

This commit is contained in:
Raphael Michel
2020-07-03 11:56:36 +02:00
parent 74acfbe2fd
commit 9920a47580
2 changed files with 3 additions and 1 deletions

View File

@@ -1145,7 +1145,7 @@ class ExportMixin:
organizer=self.request.organizer
)
responses = register_multievent_data_exporters.send(self.request.organizer)
for ex in sorted([response(events) for r, response in responses], key=lambda ex: str(ex.verbose_name)):
for ex in sorted([response(events) for r, response in responses if response], key=lambda ex: str(ex.verbose_name)):
if self.request.GET.get("identifier") and ex.identifier != self.request.GET.get("identifier"):
continue