site admin could view org's members (#9346)
This commit is contained in:
committed by
techknowlogick
parent
f6ba912cd6
commit
484e3dc5a9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user