fix another super_user permission issue

This commit is contained in:
dni ⚡
2022-12-06 13:04:27 +01:00
parent aafb2335a1
commit f2da8fc277
2 changed files with 1 additions and 6 deletions
-4
View File
@@ -39,10 +39,6 @@ async def delete_admin_settings():
async def update_admin_settings(data: UpdateSettings):
# TODO why are those field here, they are not in UpdateSettings
# TODO: why is UpdateSettings of type dict here? thats why type:ignore is needed
data.pop("lnbits_allowed_funding_sources") # type: ignore
data.pop("super_user") # type: ignore
q, values = get_q_and_values(data)
await db.execute(f"UPDATE admin.settings SET {q}", (values,)) # type: ignore