Check if user is logged in check_banned

This commit is contained in:
csd4ni3l
2025-08-14 13:53:00 +02:00
parent 4e5de6d657
commit 87bb7514af

View File

@@ -84,6 +84,9 @@ def unauthorized_handler():
@app.before_request
def check_banned():
if not hasattr(flask_login.current_user, "id"):
return
username = flask_login.current_user.id
cur = get_db().cursor()