Disallow profile changes without consent given. Together with previous commits this fixes issues #2505 and #2507.

- Legacy-Id: 15143
This commit is contained in:
Henrik Levkowetz 2018-05-08 16:26:01 +00:00
parent 874aad0322
commit 246c348f1e

View file

@ -135,6 +135,11 @@ def get_person_form(*args, **kwargs):
prevent_system_name(name)
return ascii_cleaner(name)
def clean_consent(self):
consent = self.cleaned_data.get('consent')
if consent == False:
raise forms.ValidationError("In order to modify your profile data, you must permit the IETF to use the uploaded data.")
return PersonForm(*args, **kwargs)