Skip to content

Commit 246c348

Browse files
committed
Disallow profile changes without consent given. Together with previous commits this fixes issues ietf-tools#2505 and ietf-tools#2507.
- Legacy-Id: 15143
1 parent 874aad0 commit 246c348

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/ietfauth/forms.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ def clean_ascii_short(self):
135135
prevent_system_name(name)
136136
return ascii_cleaner(name)
137137

138+
def clean_consent(self):
139+
consent = self.cleaned_data.get('consent')
140+
if consent == False:
141+
raise forms.ValidationError("In order to modify your profile data, you must permit the IETF to use the uploaded data.")
142+
138143
return PersonForm(*args, **kwargs)
139144

140145

0 commit comments

Comments
 (0)