fix ADMIN_UI=false errors

This commit is contained in:
dni ⚡
2022-10-05 13:01:59 +02:00
parent 415165c6fe
commit 850ed85311
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -124,6 +124,9 @@ async def wallet(
if LNBITS_ADMIN_UI:
LNBITS_ADMIN_USERS = g().admin_conf.admin_users
LNBITS_ALLOWED_USERS = g().admin_conf.allowed_users
else:
LNBITS_ADMIN_USERS = []
LNBITS_ALLOWED_USERS = []
if not user_id:
user = await get_user((await create_account()).id)