From b284dbb5cb0f02e172b9a3f99b5097322affb5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Sigur=C3=B0arson?= Date: Fri, 15 Jul 2016 21:23:19 +0000 Subject: [PATCH] in case of errors --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 079b960..8cc940f 100644 --- a/app.py +++ b/app.py @@ -25,12 +25,12 @@ else: @app.before_request def make_info_available(): if "user_id" in session: + g.logged_in = True try: g.user = User.get(User.id == session["user_id"]) g.user_restricts = g.user.restricts.split(",") g.team = g.user.team g.team_restricts = g.team.restricts.split(",") - g.logged_in = True except User.DoesNotExist: g.logged_in = False session.pop("user_id")