diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 06:15:58 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 06:15:58 -0400 |
commit | 30618b271aab40d29a6d34cb4e06c8d28fa74d18 (patch) | |
tree | 975ea9f2770c20f7b8b8f5ca2fffaf9deb95b0a5 /web.go | |
parent | e67653cf13857f671de9bf6279453f99cdd60d11 (diff) | |
download | gitea-30618b271aab40d29a6d34cb4e06c8d28fa74d18.tar.gz gitea-30618b271aab40d29a6d34cb4e06c8d28fa74d18.zip |
Add admin edit user
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |