only allow the order review view for unpaid orders, fixes #571

This commit is contained in:
Thomas Steen Rasmussen 2020-08-03 23:59:53 +02:00
parent 25de8984d7
commit 26e471ef2a

View file

@ -350,6 +350,7 @@ class OrderReviewAndPayView(
LoginRequiredMixin, LoginRequiredMixin,
EnsureUserOwnsOrderMixin, EnsureUserOwnsOrderMixin,
EnsureOrderHasProductsMixin, EnsureOrderHasProductsMixin,
EnsureUnpaidOrderMixin,
EnsureOrderIsNotCancelledMixin, EnsureOrderIsNotCancelledMixin,
DetailView, DetailView,
): ):