mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Re-added the ability to restrict a product sale by time
This commit is contained in:
@@ -93,7 +93,7 @@ def _add_items(event: Event, items: List[Tuple[str, Optional[str], int]],
|
||||
# Fetch all quotas. If there are no quotas, this item is not allowed to be sold.
|
||||
quotas = list(item.quotas.all()) if variation is None else list(variation.quotas.all())
|
||||
|
||||
if len(quotas) == 0 or not item.active:
|
||||
if len(quotas) == 0 or not item.is_available():
|
||||
err = err or error_messages['unavailable']
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user