Show all orgs on user profile, except the private one's
This commit is contained in:
parent
6e03f61617
commit
295de51b99
2 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue