diff options
author | Unknwon <u@gogs.io> | 2015-08-08 22:43:14 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-08 22:43:14 +0800 |
commit | dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5 (patch) | |
tree | 773b28a72cee24e4a02f3d162de8a37a8f912f59 /routers/admin/users.go | |
parent | d015d951bd6959f9585d8a83acfe7bba07b7eaad (diff) | |
download | gitea-dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5.tar.gz gitea-dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5.zip |
WIP: create PR - choose branch
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r-- | routers/admin/users.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go index 12c52236f9..2af3cdbc1f 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -139,9 +139,9 @@ func EditUser(ctx *middleware.Context) { return } - u, err := models.GetUserById(uid) + u, err := models.GetUserByID(uid) if err != nil { - ctx.Handle(500, "GetUserById", err) + ctx.Handle(500, "GetUserByID", err) return } @@ -166,7 +166,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) { return } - u, err := models.GetUserById(uid) + u, err := models.GetUserByID(uid) if err != nil { ctx.Handle(500, "GetUserById", err) return @@ -219,9 +219,9 @@ func DeleteUser(ctx *middleware.Context) { return } - u, err := models.GetUserById(uid) + u, err := models.GetUserByID(uid) if err != nil { - ctx.Handle(500, "GetUserById", err) + ctx.Handle(500, "GetUserByID", err) return } |