Merge pull request #518 from talvasconcelos/fix/disapearingAdminExt

Disapearing Extensions in Admin Only
This commit is contained in:
Arc 2022-02-11 11:17:55 +00:00 committed by GitHub
commit 9807e7d646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,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=user["id"] in [x.strip() for x in LNBITS_ADMIN_USERS] if LNBITS_ADMIN_USERS else False
)