diff options
Diffstat (limited to 'nfsw/auth.py')
-rw-r--r-- | nfsw/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py index ca31750..f8fe2ad 100644 --- a/nfsw/auth.py +++ b/nfsw/auth.py @@ -191,6 +191,6 @@ def load_logged_in_user(): 'SELECT * FROM user WHERE id=?', (user_id,) ).fetchone() - if (request.endpoint not in ['auth.terms', 'auth.sorry'] + if (request.endpoint not in ['auth.terms', 'auth.sorry', 'static'] and g.user['terms_agreed'] != 1): return redirect(url_for('auth.terms')) |