This commit is contained in:
dni ⚡
2024-10-17 10:37:06 +02:00
parent 595e0bf070
commit 3cdcb8d815
2 changed files with 7 additions and 2 deletions
+2
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