fix it up
This commit is contained in:
parent
7c96a12a3c
commit
1f75d5fd41
|
@ -233,9 +233,9 @@ async def check_user_exists(usr: UUID4) -> User:
|
||||||
status_code=HTTPStatus.NOT_FOUND, detail="User does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="User does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if len(settings.lnbits_allowed_users) > 0:
|
||||||
if (
|
if (
|
||||||
len(settings.lnbits_allowed_users) > 0
|
g().user.id not in settings.lnbits_allowed_users
|
||||||
and g().user.id not in settings.lnbits_allowed_users
|
|
||||||
or g().user.id != settings.super_user
|
or g().user.id != settings.super_user
|
||||||
or g().user.id not in settings.lnbits_admin_users
|
or g().user.id not in settings.lnbits_admin_users
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user