mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fix public org members displayed too many informations (#20403)
This commit is contained in:
		| @@ -45,6 +45,7 @@ func Members(ctx *context.Context) { | ||||
| 		} | ||||
| 		opts.PublicOnly = !isMember && !ctx.Doer.IsAdmin | ||||
| 	} | ||||
| 	ctx.Data["PublicOnly"] = opts.PublicOnly | ||||
|  | ||||
| 	total, err := organization.CountOrgMembers(opts) | ||||
| 	if err != nil { | ||||
|   | ||||
| @@ -29,6 +29,7 @@ | ||||
| 							{{end}} | ||||
| 						</div> | ||||
| 					</div> | ||||
| 					{{if not .PublicOnly}} | ||||
| 						<div class="ui three wide column center"> | ||||
| 							<div class="meta"> | ||||
| 								{{$.locale.Tr "org.members.member_role"}} | ||||
| @@ -51,6 +52,7 @@ | ||||
| 								</strong> | ||||
| 							</div> | ||||
| 						</div> | ||||
| 					{{end}} | ||||
| 					<div class="ui three wide column"> | ||||
| 						<div class="text right"> | ||||
| 							{{if eq $.SignedUser.ID .ID}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user