Merge pull request #1171 from lnbits/fix/audit_endpoint

Fix: audit endpoint
This commit is contained in:
calle 2022-12-07 14:22:39 +01:00 committed by GitHub
commit 386e1ec4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,7 +686,7 @@ async def img(request: Request, data):
)
@core_app.get("/api/v1/audit/")
@core_app.get("/api/v1/audit")
async def api_auditor(wallet: WalletTypeInfo = Depends(get_key_type)):
if wallet.wallet.user not in LNBITS_ADMIN_USERS:
raise HTTPException(