summaryrefslogtreecommitdiffstats
path: root/routers/org/members.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-14 14:36:59 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-14 01:36:59 -0500
commit484e3dc5a9012a50838bf8d00de3ffd136c0759b (patch)
treeb9b323e1f272ed11dd3d5fabc729e80df7e998dc /routers/org/members.go
parentf6ba912cd6e1868e8f66c5a38cbe317f243d7806 (diff)
downloadgitea-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.go2
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)