master
Aevann1 2021-12-18 05:33:00 +02:00
parent 431b1ca08b
commit 9eab8440d3
1 changed files with 1 additions and 2 deletions

View File

@ -18,8 +18,7 @@ def get_logged_in_user():
nonce = session.get("login_nonce", 0) nonce = session.get("login_nonce", 0)
logged_in = session.get("logged_in") logged_in = session.get("logged_in")
if not uid: return None if not uid or not logged_in or uid != logged_in: return None
# if not uid or not logged_in or uid != logged_in: return None
try: try:
if g.db: v = g.db.query(User).filter_by(id=uid).first() if g.db: v = g.db.query(User).filter_by(id=uid).first()