From 2c2558b9e115eea0fe2996ec339f759cb4c6f704 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 25 Nov 2022 19:28:45 +0000 Subject: [PATCH] fixed admin check --- lnbits/extensions/satspay/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/satspay/views.py b/lnbits/extensions/satspay/views.py index 7ba73acf8..0c19367d7 100644 --- a/lnbits/extensions/satspay/views.py +++ b/lnbits/extensions/satspay/views.py @@ -20,7 +20,7 @@ templates = Jinja2Templates(directory="templates") @satspay_ext.get("/", response_class=HTMLResponse) async def index(request: Request, user: User = Depends(check_user_exists)): admin = False - if LNBITS_ADMIN_USERS and user.id not in LNBITS_ADMIN_USERS: + if LNBITS_ADMIN_USERS and user.id in LNBITS_ADMIN_USERS: admin = True return satspay_renderer().TemplateResponse( "satspay/index.html", {"request": request, "user": user.dict(), "admin": admin}