Browse Source

Rename users action, delete action

Vova Tkach 6 years ago
parent
commit
99effa6c41
1 changed files with 11 additions and 1 deletions
  1. 11 1
      modules/module_users.go

+ 11 - 1
modules/module_users.go

@@ -204,7 +204,7 @@ func (this *Modules) RegisterModule_Users() *Module {
 	})
 }
 
-func (this *Modules) RegisterAction_CpAddModifyUser() *Action {
+func (this *Modules) RegisterAction_UsersModify() *Action {
 	return this.newAction(AInfo{
 		WantDB:    true,
 		Mount:     "users-modify",
@@ -317,3 +317,13 @@ func (this *Modules) RegisterAction_CpAddModifyUser() *Action {
 		}
 	})
 }
+
+func (this *Modules) RegisterAction_UsersDelete() *Action {
+	return this.newAction(AInfo{
+		WantDB:    true,
+		Mount:     "users-delete",
+		WantAdmin: true,
+	}, func(wrap *wrapper.Wrapper) {
+		// pf_id := wrap.R.FormValue("id")
+	})
+}