mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Allow to set organization visibility (public, internal, private) (#1763)
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							ae3a913122
						
					
				
				
					commit
					64ce159a6e
				
			@@ -129,6 +129,10 @@ func Get(ctx *context.APIContext) {
 | 
			
		||||
	// responses:
 | 
			
		||||
	//   "200":
 | 
			
		||||
	//     "$ref": "#/responses/Organization"
 | 
			
		||||
	if !models.HasOrgVisible(ctx.Org.Organization, ctx.User) {
 | 
			
		||||
		ctx.NotFound("HasOrgVisible", nil)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	ctx.JSON(200, convert.ToOrganization(ctx.Org.Organization))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user