diff --git a/routers/org/teams.go b/routers/org/teams.go index 63618b985..e4a6afcf4 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -28,7 +28,6 @@ func Teams(ctx *middleware.Context) { ctx.Data["Title"] = org.FullName ctx.Data["PageIsOrgTeams"] = true - // org.Teams is already loaded by middleware for _, t := range org.Teams { if err := t.GetMembers(); err != nil { ctx.Handle(500, "GetMembers", err) diff --git a/routers/user/home.go b/routers/user/home.go index 6e2135dca..c49b92328 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -335,7 +335,7 @@ func showOrgProfile(ctx *middleware.Context) { } ctx.Data["Members"] = org.Members - ctx.Data["Teams"] = org.Teams // already loaded by middleware + ctx.Data["Teams"] = org.Teams ctx.HTML(200, ORG_HOME) }