fix: rename bool super_user
to is_super_user
(#1690)
This commit is contained in:
parent
c0f66989cb
commit
132d8a9320
|
@ -728,7 +728,7 @@ async def get_admin_settings(is_super_user: bool = False) -> Optional[AdminSetti
|
|||
row_dict = dict(sets)
|
||||
row_dict.pop("super_user")
|
||||
admin_settings = AdminSettings(
|
||||
super_user=is_super_user,
|
||||
is_super_user=is_super_user,
|
||||
lnbits_allowed_funding_sources=settings.lnbits_allowed_funding_sources,
|
||||
**row_dict,
|
||||
)
|
||||
|
|
|
@ -463,7 +463,7 @@
|
|||
this.g.user.wallets[0].adminkey
|
||||
)
|
||||
.then(response => {
|
||||
this.isSuperUser = response.data.super_user || false
|
||||
this.isSuperUser = response.data.is_super_user || false
|
||||
this.settings = response.data
|
||||
this.formData = _.clone(this.settings)
|
||||
this.updateFundingData()
|
||||
|
@ -474,7 +474,7 @@
|
|||
},
|
||||
updateSettings() {
|
||||
let data = _.omit(this.formData, [
|
||||
'super_user',
|
||||
'is_super_user',
|
||||
'lnbits_allowed_funding_sources'
|
||||
])
|
||||
LNbits.api
|
||||
|
|
|
@ -310,7 +310,7 @@ class SuperSettings(EditableSettings):
|
|||
|
||||
|
||||
class AdminSettings(EditableSettings):
|
||||
super_user: bool
|
||||
is_super_user: bool
|
||||
lnbits_allowed_funding_sources: Optional[List[str]]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user