diff options
author | rsiddharth <s@ricketyspace.net> | 2019-10-24 22:15:47 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-10-24 22:15:47 -0400 |
commit | ac7c3863187585a8c98881458fffda19135c4e54 (patch) | |
tree | ca1a5dcd32da90cb254e25703b0f6068a96c97f9 /nfsw/auth.py | |
parent | d181386968a1b5d6c1051e5b13dd3597747e2097 (diff) |
/terms: Prettify.
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')) |