Server: Add missing negation

This commit is contained in:
Sebastian Pipping 2011-10-10 07:54:12 +02:00
parent 5fffd09053
commit 16f24cb4a3
1 changed files with 1 additions and 1 deletions

View File

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