summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-09 11:54:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-09 11:54:16 -0700
commit23195571240f27d3404f4c1666787188c86d18ae (patch)
treeb3df3011811fa079b028ba76c26f67a173644fdf /python/fatcat_web/routes.py
parentf3192742ec0b3e99155622ef505c55c260b3bdb0 (diff)
downloadfatcat-23195571240f27d3404f4c1666787188c86d18ae.tar.gz
fatcat-23195571240f27d3404f4c1666787188c86d18ae.zip
partial checking of editgroup_id checking when editing
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 422d121e..c3467a61 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -382,6 +382,9 @@ def editgroup_accept(ident):
except ApiException as ae:
app.log.info(ae)
abort(ae.status)
+ # clear active_editgroup_id cookie; this doesn't cover all cases
+ if eg.editgroup_id == session.get('active_editgroup_id'):
+ session.pop('active_editgroup_id')
return redirect('/editgroup/{}'.format(ident))
@app.route('/editgroup/<ident>/unsubmit', methods=['POST'])