make format
This commit is contained in:
parent
4410968bf5
commit
52cbc7d0f7
2 changed files with 7 additions and 2 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -63,7 +63,9 @@ class Settings(BaseSettings):
|
|||
)
|
||||
lnbits_custom_logo: str = Field(default=None)
|
||||
lnbits_ad_space_title: str = Field(default="Suported by")
|
||||
lnbits_ad_space: str = Field(default="https://shop.lnbits.com/;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-light.png;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-dark.png") # sneaky sneaky
|
||||
lnbits_ad_space: str = Field(
|
||||
default="https://shop.lnbits.com/;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-light.png;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-dark.png"
|
||||
) # sneaky sneaky
|
||||
lnbits_ad_space_enabled: bool = Field(default=False)
|
||||
|
||||
# ops
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue