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:
parent
bed0eafac1
commit
ec02ed5cdd
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue