From a7a9442144e3ab7dfafcfc2274016c58ac5558c0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Apr 2019 16:47:37 -0700 Subject: fix edit forms requiring logins --- python/fatcat_web/editing_routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/fatcat_web/editing_routes.py b/python/fatcat_web/editing_routes.py index 79a5bc3d..67b64b2a 100644 --- a/python/fatcat_web/editing_routes.py +++ b/python/fatcat_web/editing_routes.py @@ -73,8 +73,8 @@ def container_create(): form.editgroup_id.data = editgroup_id return render_template('container_create.html', form=form) -@login_required @app.route('/container//edit', methods=['GET', 'POST']) +@login_required def container_edit(ident): # TODO: prev_rev interlock try: @@ -109,6 +109,7 @@ def container_edit(ident): return render_template('container_edit.html', form=form, entity=entity) @app.route('/creator//edit', methods=['GET']) +@login_required def creator_edit(ident): try: entity = api.get_creator(ident) @@ -145,8 +146,8 @@ def file_create(): return render_template('file_create.html', form=form) -@login_required @app.route('/file//edit', methods=['GET', 'POST']) +@login_required def file_edit(ident): # TODO: prev_rev interlock try: @@ -222,8 +223,8 @@ def release_create(): form.editgroup_id.data = editgroup_id return render_template('release_create.html', form=form) -@login_required @app.route('/release//edit', methods=['GET', 'POST']) +@login_required def release_edit(ident): # TODO: prev_rev interlock try: -- cgit v1.2.3