SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 7873df84 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Make author-check case-insensitive

parent 1b8fad9b
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ class SubmissionForm(forms.ModelForm): ...@@ -85,7 +85,7 @@ class SubmissionForm(forms.ModelForm):
Also possibly may be extended to check permissions and give ultimate submission Also possibly may be extended to check permissions and give ultimate submission
power to certain user groups. power to certain user groups.
""" """
return current_user.last_name in self.cleaned_data['author_list'] return current_user.last_name.lower() in self.cleaned_data['author_list'].lower()
def update_submission_data(self): def update_submission_data(self):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment