fix: add super_user to the lnbits_admin_users list
This commit is contained in:
parent
84a24c389f
commit
6252119485
1 changed files with 2 additions and 1 deletions
|
|
@ -597,12 +597,13 @@ async def delete_admin_settings():
|
||||||
|
|
||||||
|
|
||||||
async def update_admin_settings(data: EditableSetings):
|
async def update_admin_settings(data: EditableSetings):
|
||||||
await db.execute(f"UPDATE settings SET editable_settings = ?", (json.dumps(data),)) # type: ignore
|
await db.execute(f"UPDATE settings SET editable_settings = ?", (json.dumps(data),))
|
||||||
|
|
||||||
|
|
||||||
async def create_admin_settings():
|
async def create_admin_settings():
|
||||||
account = await create_account()
|
account = await create_account()
|
||||||
settings.super_user = account.id
|
settings.super_user = account.id
|
||||||
|
settings.lnbits_admin_users += [account.id]
|
||||||
|
|
||||||
editable_settings = EditableSetings.from_dict(settings.dict())
|
editable_settings = EditableSetings.from_dict(settings.dict())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue