diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 61df49b85..c83d652c3 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -281,7 +281,7 @@ func ViewUser(ctx *context.Context) { ctx.Data["Repos"] = repos ctx.Data["ReposTotal"] = int(count) - emails, err := user_model.GetEmailAddresses(ctx.Doer.ID) + emails, err := user_model.GetEmailAddresses(u.ID) if err != nil { ctx.ServerError("GetEmailAddresses", err) return