mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-11 21:39:23 +02:00
fix: TipJar wallet access bug
This commit is contained in:
parent
4c77d6f11e
commit
d8e4237961
@ -172,7 +172,7 @@ async def api_delete_tip(
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="No tip with this ID!"
|
||||
)
|
||||
if tip.wallet != g.wallet.id:
|
||||
if tip.wallet != wallet.wallet.id:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN,
|
||||
detail="Not authorized to delete this tip!",
|
||||
@ -192,7 +192,7 @@ async def api_delete_tipjar(
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="No tipjar with this ID!"
|
||||
)
|
||||
if tipjar.wallet != g.wallet.id:
|
||||
if tipjar.wallet != wallet.wallet.id:
|
||||
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN,
|
||||
|
Loading…
x
Reference in New Issue
Block a user