fix it up

This commit is contained in:
dni ⚡ 2022-12-22 17:58:49 +01:00
parent 7c96a12a3c
commit 1f75d5fd41

View File

@ -233,9 +233,9 @@ async def check_user_exists(usr: UUID4) -> User:
status_code=HTTPStatus.NOT_FOUND, detail="User does not exist."
)
if len(settings.lnbits_allowed_users) > 0:
if (
len(settings.lnbits_allowed_users) > 0
and g().user.id not in settings.lnbits_allowed_users
g().user.id not in settings.lnbits_allowed_users
or g().user.id != settings.super_user
or g().user.id not in settings.lnbits_admin_users
):