mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Let plugins prevent the download of individual tickets in an order (#3858)
* Let plugins allow/prevent the download of individual tickets in an order (#3836)
(extends the functionality of the allow_ticket_download signal)
(cherry picked from commit e20edab98f)
* fix bug where in some cases, only the first ticket could be downloaded
This commit is contained in:
@@ -33,3 +33,7 @@ class DummyTicketOutput(BaseTicketOutput):
|
||||
|
||||
def generate(self, op):
|
||||
return 'test.txt', 'text/plain', str(op.order.id)
|
||||
|
||||
@property
|
||||
def multi_download_enabled(self) -> bool:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user