Fail consistently on invalid payment providers

This commit is contained in:
Raphael Michel
2019-04-23 09:47:55 +02:00
parent ad8fdd6935
commit 2205e57650

View File

@@ -681,6 +681,8 @@ class OrderDownload(EventViewMixin, OrderDetailMixin, AsyncAction, View):
return None
def get(self, request, *args, **kwargs):
if not self.output or not self.output.is_enabled:
return self.error(_('You requested an invalid ticket output type.'))
if 'async_id' in request.GET and settings.HAS_CELERY:
return self.get_result(request)
ct = self.get_last_ct()