fix ADMIN_UI=false errors

This commit is contained in:
dni ⚡
2022-10-25 09:20:16 +02:00
parent 0beb112d5b
commit bfff5f3775
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)