fix: cached user check (#3682)

This commit is contained in:
Vlad Stan 2025-12-22 11:24:07 +02:00 committed by GitHub
parent 3b2e28dd60
commit 9f383bfee6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -249,7 +249,7 @@ async def check_account_id_exists(
account_id = cache.get(cache_key) account_id = cache.get(cache_key)
if account_id: if account_id:
r.scope["user_id"] = account_id.id r.scope["user_id"] = account_id.id
await _check_user_access(r, account_id, conn=conn) await _check_user_access(r, account_id.id, conn=conn)
return account_id return account_id
account = await _check_account_exists(r, access_token, usr, conn=conn) account = await _check_account_exists(r, access_token, usr, conn=conn)