aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-02-09 15:40:34 +0900
committerGitHub <noreply@github.com>2023-02-09 06:40:34 +0000
commit7ae10cb7f1a520d46c2c92d60cf5181c3d7b6850 (patch)
treec4468a60b587f2222edd88dedaff9228d4b93ba1 /modules
parent90cf07a2c8dc2917d0c02648f0a69e0229cfce21 (diff)
downloadgitea-7ae10cb7f1a520d46c2c92d60cf5181c3d7b6850.tar.gz
gitea-7ae10cb7f1a520d46c2c92d60cf5181c3d7b6850.zip
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`.
Diffstat (limited to 'modules')
-rw-r--r--modules/structs/visible_type.go (renamed from modules/structs/org_type.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/structs/org_type.go b/modules/structs/visible_type.go
index 69f323fa99..b5ff353b87 100644
--- a/modules/structs/org_type.go
+++ b/modules/structs/visible_type.go
@@ -3,7 +3,7 @@
package structs
-// VisibleType defines the visibility (Organization only)
+// VisibleType defines the visibility of user and org
type VisibleType int
const (
@@ -13,11 +13,11 @@ const (
// VisibleTypeLimited Visible for every connected user
VisibleTypeLimited
- // VisibleTypePrivate Visible only for organization's members
+ // VisibleTypePrivate Visible only for self or admin user
VisibleTypePrivate
)
-// VisibilityModes is a map of org Visibility types
+// VisibilityModes is a map of Visibility types
var VisibilityModes = map[string]VisibleType{
"public": VisibleTypePublic,
"limited": VisibleTypeLimited,