diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-14 14:36:59 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-14 01:36:59 -0500 |
commit | 484e3dc5a9012a50838bf8d00de3ffd136c0759b (patch) | |
tree | b9b323e1f272ed11dd3d5fabc729e80df7e998dc /routers/org/members.go | |
parent | f6ba912cd6e1868e8f66c5a38cbe317f243d7806 (diff) | |
download | gitea-484e3dc5a9012a50838bf8d00de3ffd136c0759b.tar.gz gitea-484e3dc5a9012a50838bf8d00de3ffd136c0759b.zip |
site admin could view org's members (#9346)
Diffstat (limited to 'routers/org/members.go')
-rw-r--r-- | routers/org/members.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |