app/soc/logic/models/user.py
changeset 1517 a467d13e34ea
parent 1479 bc738f92a4d8
child 1521 bb086732bf7f
--- a/app/soc/logic/models/user.py	Thu Feb 26 16:51:35 2009 +0000
+++ b/app/soc/logic/models/user.py	Thu Feb 26 16:52:29 2009 +0000
@@ -129,7 +129,7 @@
 
     return ['link_id']
 
-  def _updateField(self, entity, name, value):
+  def _updateField(self, entity, entity_properties, name):
     """Special case logic for account.
 
     When the account is changed, the former_accounts field should be appended
@@ -139,6 +139,8 @@
     Make sure once the user agreed ToS, the ToS fields can't be changed.
     """
 
+    value = entity_properties[name]
+
     # iff the agreed_to_tos is True and we want to set it to False 
     if (name == 'agreed_to_tos') and (not value) and entity.agreed_to_tos:
       return False