Update api.py
This commit is contained in:
@@ -71,7 +71,7 @@ async def api_wallet(wallet: WalletTypeInfo = Depends(get_key_type)):
|
|||||||
async def api_update_balance(
|
async def api_update_balance(
|
||||||
amount: int, wallet: WalletTypeInfo = Depends(get_key_type)
|
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(
|
raise HTTPException(
|
||||||
status_code=HTTPStatus.FORBIDDEN, detail="Not an admin user"
|
status_code=HTTPStatus.FORBIDDEN, detail="Not an admin user"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user