Add global user variable

This commit is contained in:
Edward Betts 2021-06-17 19:17:28 +02:00
parent 478a145548
commit 57d79b3aa2

View file

@ -75,6 +75,10 @@ def shutdown_session(exception=None):
database.session.remove()
@app.before_request
def global_user():
g.user = flask_login.current_user._get_current_object()
def check_for_tagged_qids(qids):
tagged = set()
for qid in qids: