summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nfsw/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py
index f659f23..1a453c4 100644
--- a/nfsw/auth.py
+++ b/nfsw/auth.py
@@ -204,5 +204,5 @@ def load_logged_in_user():
).fetchone()
if (request.endpoint not in ['auth.terms', 'auth.sorry', 'static']
- and g.user['terms_agreed'] != 1):
+ and g.user and g.user['terms_agreed'] != 1):
return redirect(url_for('auth.terms'))