diff --git a/routers/web/org/members.go b/routers/web/org/members.go index 8361da663211..1953a8b2849b 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 e2ec6d87858e..bae8e5a003c6 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 ed0175dc93b5..10227a3ebded 100644 --- a/templates/user/overview/header.tmpl +++ b/templates/user/overview/header.tmpl @@ -20,6 +20,9 @@