summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-30 21:51:11 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-30 21:53:58 +0000
commit295de51b9958703fe1b8da49aa1c13421b318190 (patch)
tree7361d7392659a8e3893a93be33f538a084ab71b2 /routers/user
parent6e03f6161777b38c0c185793e8f0294851796e46 (diff)
downloadgitea-295de51b9958703fe1b8da49aa1c13421b318190.tar.gz
gitea-295de51b9958703fe1b8da49aa1c13421b318190.zip
Show all orgs on user profile, except the private one's
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/profile.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 3a25363818..1452b29733 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -74,10 +74,10 @@ 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")
+
+ orgs, err := models.GetPublicOrgsByUserIDDesc(u.Id, "updated")
if err != nil {
- ctx.Handle(500, "GetOwnedOrgsByUserIDDesc", err)
+ ctx.Handle(500, "GetPublicOrgsByUserIDDesc", err)
return
}
ctx.Data["Orgs"] = orgs