Bug in ownership of account test

This commit is contained in:
Yann Esposito (Yogsototh) 2010-04-06 03:09:17 +02:00
parent 8d814cdb8f
commit edab4272b0

View file

@ -86,7 +86,7 @@ module Rubyzome
### OWNERSHIP ###
def check_ownership_user_account(user,account)
if account.user_id = user
if account.user != user
raise Error, "Account is not linked to user #{user.nickname}"
end
end