diff --git a/routers/web/org/members.go b/routers/web/org/members.go index 374c89357..ec5a98fc6 100644 --- a/routers/web/org/members.go +++ b/routers/web/org/members.go @@ -45,6 +45,7 @@ func Members(ctx *context.Context) { } opts.PublicOnly = !isMember && !ctx.Doer.IsAdmin } + ctx.Data["PublicOnly"] = opts.PublicOnly total, err := organization.CountOrgMembers(opts) if err != nil { diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 081a7f0a1..9a2c235aa 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -29,28 +29,30 @@ {{end}} -