mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix PRETIXEU-3V3
This commit is contained in:
@@ -390,7 +390,12 @@ def add_subevents_for_days(qs, before, after, ebd, timezones, event=None, cart_n
|
|||||||
s = event.settings if event else se.event.settings
|
s = event.settings if event else se.event.settings
|
||||||
|
|
||||||
if s.event_list_available_only:
|
if s.event_list_available_only:
|
||||||
if se.presale_has_ended or ((not voucher or not voucher.allow_ignore_quota) and se.best_availability_state < Quota.AVAILABILITY_RESERVED):
|
hide = se.presale_has_ended or (
|
||||||
|
(not voucher or not voucher.allow_ignore_quota) and
|
||||||
|
se.best_availability_state is not None and
|
||||||
|
se.best_availability_state < Quota.AVAILABILITY_RESERVED
|
||||||
|
)
|
||||||
|
if hide:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
timezones.add(s.timezones)
|
timezones.add(s.timezones)
|
||||||
|
|||||||
Reference in New Issue
Block a user