Ensure that the link_id entered is the user's in edit_self
authorSverre Rabbelier <srabbelier@gmail.com>
Sun, 22 Mar 2009 14:52:38 +0000
changeset 1986 5375e657a715
parent 1985 4ff03ca639fd
child 1987 dd0ba04ef589
Ensure that the link_id entered is the user's in edit_self Patch by: Sverre Rabbelier
app/soc/views/models/user_self.py
--- a/app/soc/views/models/user_self.py	Sun Mar 22 14:52:05 2009 +0000
+++ b/app/soc/views/models/user_self.py	Sun Mar 22 14:52:38 2009 +0000
@@ -94,7 +94,7 @@
         'clean_link_id': cleaning.clean_user_not_exist('link_id'),}
 
     new_params['edit_extra_dynaproperties'] = {
-        'clean_link_id': cleaning.clean_link_id('link_id'),
+        'clean_link_id': cleaning.clean_user_is_current('link_id', False),
         'agreed_to_tos_on': forms.DateTimeField(
           widget=widgets.ReadOnlyInput(attrs={'disabled':'true'}),
           required=False),