make carts private again... lol

modified:   make_post_sell/views/cart.py
This commit is contained in:
Russell Ballestrini 2024-06-16 22:35:29 -04:00
parent 597ac4938b
commit c9460d10ed

View file

@ -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: