From c96fd6783b5ac34b4be202ff3867274261741428 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 4 Jan 2023 10:41:56 +0100 Subject: [PATCH] fix super_user check, fixes #1250 --- .env.example | 4 ++++ lnbits/core/templates/core/wallet.html | 27 ++++++++------------------ lnbits/core/views/generic.py | 2 ++ 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.env.example b/.env.example index bb4e64a12..6a3710c2f 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,11 @@ LNBITS_ALLOWED_USERS="" LNBITS_ADMIN_USERS="" # Extensions only admin can access LNBITS_ADMIN_EXTENSIONS="ngrok, admin" + # Enable Admin GUI, available for the first user in LNBITS_ADMIN_USERS if available +# Warning: Enabling this will make LNbits ignore this configuration file. Your settings will +# be stored in your database and you will be able to change them only through the Admin UI. +# Disable this to make LNbits use this config file again. LNBITS_ADMIN_UI=false LNBITS_DEFAULT_WALLET_NAME="LNbits wallet" diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index 9de969569..0f68a0fe4 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -23,7 +23,7 @@ {% raw %}{{ formattedBalance }} {% endraw %} {{LNBITS_DENOMINATION}} - - -