From 484e3dc5a9012a50838bf8d00de3ffd136c0759b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 14 Dec 2019 14:36:59 +0800 Subject: site admin could view org's members (#9346) --- routers/org/members.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/org/members.go') diff --git a/routers/org/members.go b/routers/org/members.go index b9805c2c03..6bccb3d972 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -41,7 +41,7 @@ func Members(ctx *context.Context) { ctx.Error(500, "IsOrgMember") return } - opts.PublicOnly = !isMember + opts.PublicOnly = !isMember && !ctx.User.IsAdmin } total, err := models.CountOrgMembers(opts) -- cgit v1.2.3