Skip to content

Commit ec02ed5

Browse files
committed
Removed case sensitivity in the submission API when comparing the submitter email address with the email addresses found in the draft. Fixes issue ietf-tools#2396.
- Legacy-Id: 14265
1 parent bed0eaf commit ec02ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/submit/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def err(code, text):
115115
if errors:
116116
raise ValidationError(errors)
117117

118-
if not user.username in [ a['email'] for a in authors ]:
118+
if not user.username.lower() in [ a['email'].lower() for a in authors ]:
119119
raise ValidationError('Submitter %s is not one of the document authors' % user.username)
120120

121121
submission.submitter = user.person.formatted_email()

0 commit comments

Comments
 (0)