mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-23 02:16:37 +08:00
[系统用户]可以创建、修改、删除超级管理员
This commit is contained in:
@@ -34,6 +34,7 @@ func (this *UpdatePopupAction) RunGet(params struct {
|
||||
"fullname": admin.Fullname,
|
||||
"username": admin.Username,
|
||||
"isOn": admin.IsOn,
|
||||
"isSuper": admin.IsSuper,
|
||||
}
|
||||
|
||||
moduleMaps := configloaders.AllModuleMaps()
|
||||
@@ -62,6 +63,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
||||
Pass2 string
|
||||
ModuleCodes []string
|
||||
IsOn bool
|
||||
IsSuper bool
|
||||
|
||||
Must *actions.Must
|
||||
CSRF *actionutils.CSRF
|
||||
@@ -120,7 +122,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
|
||||
Password: params.Pass1,
|
||||
Fullname: params.Fullname,
|
||||
ModulesJSON: modulesJSON,
|
||||
IsSuper: false, // TODO 后期再开放创建超级用户
|
||||
IsSuper: params.IsSuper,
|
||||
IsOn: params.IsOn,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user