summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 06:15:58 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 06:15:58 -0400
commit30618b271aab40d29a6d34cb4e06c8d28fa74d18 (patch)
tree975ea9f2770c20f7b8b8f5ca2fffaf9deb95b0a5 /web.go
parente67653cf13857f671de9bf6279453f99cdd60d11 (diff)
downloadgitea-30618b271aab40d29a6d34cb4e06c8d28fa74d18.tar.gz
gitea-30618b271aab40d29a6d34cb4e06c8d28fa74d18.zip
Add admin edit user
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index d6d78afa5d..54aaab573b 100644
--- a/web.go
+++ b/web.go
@@ -118,6 +118,7 @@ func runWeb(*cli.Context) {
m.Get("/admin", reqSignIn, adminReq, admin.Dashboard)
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.Get("/admin/repos", reqSignIn, adminReq, admin.Repositories)
m.Get("/admin/config", reqSignIn, adminReq, admin.Config)