mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
Update api.py
This commit is contained in:
parent
8c923ad653
commit
155c32504a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ async def api_wallet(wallet: WalletTypeInfo = Depends(get_key_type)):
|
|||
async def api_update_balance(
|
||||
amount: int, wallet: WalletTypeInfo = Depends(get_key_type)
|
||||
):
|
||||
if LNBITS_ADMIN_USERS and wallet.wallet.user not in LNBITS_ADMIN_USERS:
|
||||
if wallet.wallet.user not in LNBITS_ADMIN_USERS:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.FORBIDDEN, detail="Not an admin user"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue