make carts private again... lol
modified: make_post_sell/views/cart.py
This commit is contained in:
parent
597ac4938b
commit
c9460d10ed
1 changed files with 2 additions and 6 deletions
|
|
@ -172,12 +172,8 @@ def cart_by_id(request):
|
|||
if cart is None:
|
||||
msg = ("That cart_id does not exist.", "error")
|
||||
|
||||
elif (
|
||||
cart.active
|
||||
or cart.public
|
||||
or (
|
||||
request.user and request.user.authenticated and request.user.owns_cart(cart)
|
||||
)
|
||||
elif cart.public or (
|
||||
request.user and request.user.authenticated and request.user.owns_cart(cart)
|
||||
):
|
||||
# remove invalid coupons from cart, if any.
|
||||
for coupon in cart.coupons:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue