app/soc/logic/cleaning.py
changeset 1242 c5ca70606850
parent 1217 aeabe6bed55b
child 1285 d54f2d80f46e
--- a/app/soc/logic/cleaning.py	Sat Feb 07 20:40:48 2009 +0000
+++ b/app/soc/logic/cleaning.py	Sat Feb 07 20:42:28 2009 +0000
@@ -216,7 +216,7 @@
   """
   def wrapper(self):
     cleaned_data = self.cleaned_data
-    
+
     link_id = cleaned_data.get(link_id_field)
     user_account = cleaned_data.get(account_field)
 
@@ -229,8 +229,7 @@
       former_accounts = user_entity.former_accounts
 
       # if it's not the user's current account or one of his former accounts
-      if (user_entity.account != user_account  and 
-          user_account not in former_accounts):
+      if user_entity.account != user_account:
 
         # get the user having the given account
         fields = {'account': user_account}