mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Fix ListUserOrgs (#12910)
fix #12891 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		| @@ -85,7 +85,7 @@ func ListUserOrgs(ctx *context.APIContext) { | ||||
| 	if ctx.Written() { | ||||
| 		return | ||||
| 	} | ||||
| 	listUserOrgs(ctx, u, ctx.User.IsAdmin) | ||||
| 	listUserOrgs(ctx, u, ctx.User != nil && (ctx.User.IsAdmin || ctx.User.ID == u.ID)) | ||||
| } | ||||
|  | ||||
| // GetAll return list of all public organizations | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 赵智超
					赵智超