Skip to content

Commit 7ae10cb

Browse files
authored
change org_type.go to visible_type.go and fix the notes (go-gitea#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`.
1 parent 90cf07a commit 7ae10cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/structs/org_type.go renamed to modules/structs/visible_type.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package structs
55

6-
// VisibleType defines the visibility (Organization only)
6+
// VisibleType defines the visibility of user and org
77
type VisibleType int
88

99
const (
@@ -13,11 +13,11 @@ const (
1313
// VisibleTypeLimited Visible for every connected user
1414
VisibleTypeLimited
1515

16-
// VisibleTypePrivate Visible only for organization's members
16+
// VisibleTypePrivate Visible only for self or admin user
1717
VisibleTypePrivate
1818
)
1919

20-
// VisibilityModes is a map of org Visibility types
20+
// VisibilityModes is a map of Visibility types
2121
var VisibilityModes = map[string]VisibleType{
2222
"public": VisibleTypePublic,
2323
"limited": VisibleTypeLimited,

0 commit comments

Comments
 (0)