mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	change org_type.go to visible_type.go and fix the notes (#22752)
It seems `VisibleType` is only designed for org at first. But it is also used by user's visibility now. So I think `org_type.go` can be changed to `visible_type.go`.
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
package structs
 | 
					package structs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// VisibleType defines the visibility (Organization only)
 | 
					// VisibleType defines the visibility of user and org
 | 
				
			||||||
type VisibleType int
 | 
					type VisibleType int
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
@@ -13,11 +13,11 @@ const (
 | 
				
			|||||||
	// VisibleTypeLimited Visible for every connected user
 | 
						// VisibleTypeLimited Visible for every connected user
 | 
				
			||||||
	VisibleTypeLimited
 | 
						VisibleTypeLimited
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// VisibleTypePrivate Visible only for organization's members
 | 
						// VisibleTypePrivate Visible only for self or admin user
 | 
				
			||||||
	VisibleTypePrivate
 | 
						VisibleTypePrivate
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// VisibilityModes is a map of org Visibility types
 | 
					// VisibilityModes is a map of Visibility types
 | 
				
			||||||
var VisibilityModes = map[string]VisibleType{
 | 
					var VisibilityModes = map[string]VisibleType{
 | 
				
			||||||
	"public":  VisibleTypePublic,
 | 
						"public":  VisibleTypePublic,
 | 
				
			||||||
	"limited": VisibleTypeLimited,
 | 
						"limited": VisibleTypeLimited,
 | 
				
			||||||
		Reference in New Issue
	
	Block a user