This commit is contained in:
dni ⚡ 2024-09-30 09:26:59 +02:00 committed by Vlad Stan
parent 06385c14d8
commit 3c67b0cf71

View File

@ -152,6 +152,8 @@ async def check_user_exists(
raise HTTPException(HTTPStatus.UNAUTHORIZED, "User not allowed.")
user = await get_user(account)
if not user:
raise HTTPException(HTTPStatus.UNAUTHORIZED, "User not found.")
await _check_user_extension_access(user.id, r["path"])
return user