Ensure that the link_id entered is the user's in edit_self
Patch by: Sverre Rabbelier
--- 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),