mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 09:54:21 +01:00
fixup!
This commit is contained in:
parent
06385c14d8
commit
3c67b0cf71
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user