~edwargix/git.sr.ht

bd161052b50faebcd709943bacef86fb9d2696ff — Drew DeVault 8 years ago 50a365c
Refresh current_user when rendering templates
1 files changed, 2 insertions(+), 1 deletions(-)

M gitsrht/app.py
M gitsrht/app.py => gitsrht/app.py +2 -1
@@ 44,5 44,6 @@ app.register_blueprint(manage)
@app.context_processor
def inject():
    return {
        "oauth_url": oauth_url(request.full_path)
        "oauth_url": oauth_url(request.full_path),
        "current_user": User.query.filter(User.id == current_user).first() if current_user else None
    }