diff options
Diffstat (limited to 'routers/api/v1/org/member.go')
-rw-r--r-- | routers/api/v1/org/member.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go index 267eda12ad..e452683da1 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.go @@ -69,7 +69,7 @@ func ListMembers(ctx *context.APIContext) { ctx.Error(http.StatusInternalServerError, "IsOrgMember", err) return } - publicOnly = !isMember + publicOnly = !isMember && !ctx.User.IsAdmin } listMembers(ctx, publicOnly) } |