aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/members.go1
-rw-r--r--routers/web/org/teams.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/routers/web/org/members.go b/routers/web/org/members.go
index 8361da6632..1953a8b284 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 e2ec6d8785..bae8e5a003 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)
}