master
James Sigurðarson 2016-07-15 21:18:14 +00:00
parent 8385bd3d0c
commit 2dbe921da9
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -30,7 +30,9 @@ def make_info_available():
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")
return render_template("login.html")
else: