mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	[系统用户]可以创建、修改、删除超级管理员
This commit is contained in:
		@@ -28,6 +28,7 @@ func (this *CreatePopupAction) RunPost(params struct {
 | 
			
		||||
	Pass1       string
 | 
			
		||||
	Pass2       string
 | 
			
		||||
	ModuleCodes []string
 | 
			
		||||
	IsSuper     bool
 | 
			
		||||
 | 
			
		||||
	Must *actions.Must
 | 
			
		||||
	CSRF *actionutils.CSRF
 | 
			
		||||
@@ -81,15 +82,13 @@ func (this *CreatePopupAction) RunPost(params struct {
 | 
			
		||||
		Password:    params.Pass1,
 | 
			
		||||
		Fullname:    params.Fullname,
 | 
			
		||||
		ModulesJSON: modulesJSON,
 | 
			
		||||
		IsSuper:     false, // TODO 后期再开放创建超级用户
 | 
			
		||||
		IsSuper:     params.IsSuper,
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		this.ErrorPage(err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	defer this.CreateLogInfo("创建系统用户 %d", createResp.AdminId)
 | 
			
		||||
 | 
			
		||||
	// 通知更改
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user