make format

This commit is contained in:
Tiago Vasconcelos
2022-12-02 14:38:21 +00:00
parent 4410968bf5
commit 52cbc7d0f7
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -145,7 +145,10 @@ async def api_themes_save(
wallet: WalletTypeInfo = Depends(require_invoice_key),
css_id: str = None,
):
if settings.lnbits_admin_users and wallet.wallet.user not in settings.lnbits_admin_users:
if (
settings.lnbits_admin_users
and wallet.wallet.user not in settings.lnbits_admin_users
):
raise HTTPException(
status_code=HTTPStatus.FORBIDDEN,
detail="Only server admins can create themes.",