forked from rDrama/rDrama
dont iplog when GLOBAL
parent
05e809cc50
commit
8d88a490cb
|
@ -69,8 +69,7 @@ def after_request(response):
|
||||||
g.v.last_active = timestamp
|
g.v.last_active = timestamp
|
||||||
g.db.add(g.v)
|
g.db.add(g.v)
|
||||||
|
|
||||||
if FEATURES['IP_LOGGING']:
|
if FEATURES['IP_LOGGING'] and not session.get("GLOBAL") and g.v.admin_level < PERMS['EXEMPT_FROM_IP_LOGGING']:
|
||||||
if g.v.admin_level < PERMS['EXEMPT_FROM_IP_LOGGING']:
|
|
||||||
ip = get_IP()
|
ip = get_IP()
|
||||||
if ip:
|
if ip:
|
||||||
existing = g.db.query(IPLog).filter_by(user_id=user_id, ip=ip).one_or_none()
|
existing = g.db.query(IPLog).filter_by(user_id=user_id, ip=ip).one_or_none()
|
||||||
|
|
Loading…
Reference in New Issue