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
This commit is contained in:
Henrik Levkowetz 2017-11-01 13:47:12 +00:00
parent bed0eafac1
commit ec02ed5cdd

View file

@ -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()