From ec02ed5cddbd32ed92c420ddc3a538de7f13af44 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 1 Nov 2017 13:47:12 +0000 Subject: [PATCH] Removed case sensitivity in the submission API when comparing the submitter email address with the email addresses found in the draft. Fixes issue #2396. - Legacy-Id: 14265 --- ietf/submit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/submit/views.py b/ietf/submit/views.py index eddfcd195..762b40a76 100644 --- a/ietf/submit/views.py +++ b/ietf/submit/views.py @@ -115,7 +115,7 @@ def api_submit(request): if errors: raise ValidationError(errors) - if not user.username in [ a['email'] for a in authors ]: + if not user.username.lower() in [ a['email'].lower() for a in authors ]: raise ValidationError('Submitter %s is not one of the document authors' % user.username) submission.submitter = user.person.formatted_email()