Server: Add missing negation

master
Sebastian Pipping 13 years ago
parent 5fffd09053
commit 16f24cb4a3

@ -74,7 +74,7 @@ class BuyableItemHandler(BaseHandler):
amount = getInt(request.data, 'amount', 1)
if amount < 1:
return rc.BAD_REQUEST
if item.hasDeposit() and deposit > 0:
if not item.hasDeposit() and deposit > 0:
return rc.BAD_REQUEST # this is just the user being plain stupid
order = Order()
order.create(request.user)

Loading…
Cancel
Save