Skip to content

Commit

Permalink
Reroute them to the copy edit page.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmccurley committed Jan 6, 2025
1 parent fd6b005 commit 0412b50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def show_submit_version():
elif ((paper_status.status == PaperStatusEnum.EDIT_FINISHED.value or
paper_status.status == PaperStatusEnum.EDIT_REVISED) and
form.version.data != Version.FINAL.value):
return render_template('message.html',
title='Wrong version',
error='Version should be final. This is a bug')
return redirect(url_for('home_bp.view_copyedit',
paperid=paperid,
auth=create_hmac([paperid, Version.COPYEDIT.value])))
elif paper_status.status == PaperStatusEnum.FINAL_SUBMITTED:
return render_template('message.html',
title='Your paper is pending final review.',
Expand Down

0 comments on commit 0412b50

Please sign in to comment.