From d1d62583c4a47e73594c5876632faf825d440f3e Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Wed, 9 Feb 2022 11:16:13 +0000 Subject: [PATCH] fix for whitespace in admin users list --- lnbits/core/crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/crud.py b/lnbits/core/crud.py index 3066b124..e1539212 100644 --- a/lnbits/core/crud.py +++ b/lnbits/core/crud.py @@ -62,7 +62,7 @@ async def get_user(user_id: str, conn: Optional[Connection] = None) -> Optional[ email=user["email"], extensions=[e[0] for e in extensions], wallets=[Wallet(**w) for w in wallets], - admin=LNBITS_ADMIN_USERS and user["id"] in LNBITS_ADMIN_USERS + admin=LNBITS_ADMIN_USERS and user["id"] in [x.strip() for x in LNBITS_ADMIN_USERS] )