diff --git a/routers/web/org/members.go b/routers/web/org/members.go index 8361da663211c..1953a8b2849b3 100644 --- a/routers/web/org/members.go +++ b/routers/web/org/members.go @@ -62,6 +62,7 @@ func Members(ctx *context.Context) { } ctx.Data["Page"] = pager ctx.Data["Members"] = members + ctx.Data["ContextUser"] = ctx.ContextUser ctx.Data["MembersIsPublicMember"] = membersIsPublic ctx.Data["MembersIsUserOrgOwner"] = organization.IsUserOrgOwner(members, org.ID) ctx.Data["MembersTwoFaStatus"] = members.GetTwoFaStatus() diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go index e2ec6d87858eb..bae8e5a003c60 100644 --- a/routers/web/org/teams.go +++ b/routers/web/org/teams.go @@ -56,6 +56,7 @@ func Teams(ctx *context.Context) { } } ctx.Data["Teams"] = ctx.Org.Teams + ctx.Data["ContextUser"] = ctx.ContextUser ctx.HTML(http.StatusOK, tplTeams) } diff --git a/templates/user/overview/header.tmpl b/templates/user/overview/header.tmpl index ed0175dc93b51..10227a3ebded0 100644 --- a/templates/user/overview/header.tmpl +++ b/templates/user/overview/header.tmpl @@ -20,6 +20,9 @@