mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Check Event.presale_is_running in more places
This commit is contained in:
@@ -22,6 +22,10 @@ class CheckoutView(View):
|
||||
messages.error(request, _("Your cart is empty"))
|
||||
return redirect(eventreverse(self.request.event, 'presale:event.index'))
|
||||
|
||||
if not request.event.presale_is_running:
|
||||
messages.error(request, _("The presale for this event is over or has not yet started."))
|
||||
return redirect(eventreverse(self.request.event, 'presale:event.index'))
|
||||
|
||||
cart_error = None
|
||||
try:
|
||||
validate_cart.send(sender=self.request.event, positions=cart_pos)
|
||||
|
||||
Reference in New Issue
Block a user