diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:47:37 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-04-04 16:47:37 -0700 |
commit | a7a9442144e3ab7dfafcfc2274016c58ac5558c0 (patch) | |
tree | e978c05e91706b87117855ad7216176679ad3c21 /python/fatcat_web/editing_routes.py | |
parent | c4d1a09f914447c3a12706964f5ec056740505f6 (diff) | |
download | fatcat-a7a9442144e3ab7dfafcfc2274016c58ac5558c0.tar.gz fatcat-a7a9442144e3ab7dfafcfc2274016c58ac5558c0.zip |
fix edit forms requiring logins
Diffstat (limited to 'python/fatcat_web/editing_routes.py')
-rw-r--r-- | python/fatcat_web/editing_routes.py | 7 |
1 files changed, 4 insertions, 3 deletions
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/<ident>/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/<ident>/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/<ident>/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/<ident>/edit', methods=['GET', 'POST']) +@login_required def release_edit(ident): # TODO: prev_rev interlock try: |