diff options
Diffstat (limited to 'uploader/entry.py')
-rw-r--r-- | uploader/entry.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uploader/entry.py b/uploader/entry.py index 941200a..82034ed 100644 --- a/uploader/entry.py +++ b/uploader/entry.py @@ -16,6 +16,7 @@ from flask import ( send_from_directory) from uploader.db import species +from uploader.authorisation import require_login from uploader.db_utils import with_db_connection from uploader.oauth2.client import user_logged_in @@ -91,6 +92,7 @@ def index(): return render_template("index.html" if user_logged_in() else "login.html") @entrybp.route("/upload", methods=["GET", "POST"]) +@require_login def upload_file(): """Enables uploading the files""" if request.method == "GET": @@ -123,6 +125,7 @@ def upload_file(): filetype=request.form["filetype"])) @entrybp.route("/data-review", methods=["GET"]) +@require_login def data_review(): """Provide some help on data expectations to the user.""" return render_template("data_review.html") |