diff --git a/routers/user/profile.go b/routers/user/profile.go index 915cf86c..3a253638 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -74,6 +74,13 @@ func Profile(ctx *middleware.Context) { ctx.Data["Title"] = u.DisplayName() ctx.Data["PageIsUserProfile"] = true ctx.Data["Owner"] = u + + orgs, err := models.GetOwnedOrgsByUserIDDesc(u.Id, "updated") + if err != nil { + ctx.Handle(500, "GetOwnedOrgsByUserIDDesc", err) + return + } + ctx.Data["Orgs"] = orgs tab := ctx.Query("tab") ctx.Data["TabName"] = tab diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 741d0c12..f82edb22 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -40,7 +40,7 @@ {{end}}