diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-22 06:20:00 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-22 06:20:00 -0400 |
commit | 76cd448e7925997b60a54e8d9431ffd0826cc24e (patch) | |
tree | 3c99d9a07e579559ee0ec49bcb355ce893b40f5f /web.go | |
parent | 19104f156fd91b7d2cdc84b86dd27e6dcfa11416 (diff) | |
download | gitea-76cd448e7925997b60a54e8d9431ffd0826cc24e.tar.gz gitea-76cd448e7925997b60a54e8d9431ffd0826cc24e.zip |
Add admin delete user
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -119,6 +119,7 @@ func runWeb(*cli.Context) { m.Get("/admin/users", reqSignIn, adminReq, admin.Users) m.Any("/admin/users/new", reqSignIn, adminReq, binding.BindIgnErr(auth.RegisterForm{}), admin.NewUser) m.Any("/admin/users/:userid", reqSignIn, adminReq, binding.BindIgnErr(auth.AdminEditUserForm{}), admin.EditUser) + m.Any("/admin/users/:userid/delete", reqSignIn, adminReq, admin.DeleteUser) m.Get("/admin/repos", reqSignIn, adminReq, admin.Repositories) m.Get("/admin/config", reqSignIn, adminReq, admin.Config) |