Skip to content

Commit

Permalink
Oops remove this in production.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmccurley committed Jul 16, 2024
1 parent 16b4089 commit 3b68104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def home():
def show_submit_version():
form = SubmitForm(request.args)
if not form.paperid.data:
if 'bypass' not in request.args:
bypass = request.args.get('bypass', None)
if bypass != app.config['SUBMIT_BYPASS']: # just for testing.
return redirect(url_for('home_bp.home'))
#TODO: remove this if. It's only for testing to supply a paperid when it doesn't come from internal.
# In this case the submission doesn't come from hotcrp, so we make up some fields.
Expand Down

0 comments on commit 3b68104

Please sign in to comment.