From 3b681040dd2d0c29ad585a97c907cd9ec4a85cd9 Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Mon, 15 Jul 2024 23:52:26 -0700 Subject: [PATCH] Oops remove this in production. --- webapp/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/routes.py b/webapp/routes.py index 5cb3af4..d8626c8 100644 --- a/webapp/routes.py +++ b/webapp/routes.py @@ -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.