summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-03-29 14:29:02 +0800
committerGitHub <noreply@github.com>2022-03-29 14:29:02 +0800
commitb06b9a056c0af751e576978f6ef3c914ee959b9c (patch)
treeaa0d11413038baa5d47af65fd435665c698fe456 /models/fixtures
parentd4c789dfc1c341413b77a2f21fe7339982102bed (diff)
downloadgitea-b06b9a056c0af751e576978f6ef3c914ee959b9c.tar.gz
gitea-b06b9a056c0af751e576978f6ef3c914ee959b9c.zip
Move organization related structs into sub package (#18518)
* Move organization related structs into sub package * Fix test * Fix lint * Move more functions into sub packages * Fix bug * Fix test * Update models/organization/team_repo.go Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * Apply suggestions from code review Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * Fix fmt * Follow suggestion from @Gusted * Fix test * Fix test * Fix bug * Use ctx but db.DefaultContext on routers * Fix bug * Fix bug * fix bug * Update models/organization/team_user.go * Fix bug Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/team.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/fixtures/team.yml b/models/fixtures/team.yml
index 9a8b0aff76..f6dfd1e9d0 100644
--- a/models/fixtures/team.yml
+++ b/models/fixtures/team.yml
@@ -6,6 +6,7 @@
authorize: 4 # owner
num_repos: 3
num_members: 1
+ can_create_org_repo: true
-
id: 2
@@ -15,6 +16,7 @@
authorize: 2 # write
num_repos: 1
num_members: 2
+ can_create_org_repo: false
-
id: 3
@@ -24,6 +26,7 @@
authorize: 4 # owner
num_repos: 0
num_members: 1
+ can_create_org_repo: true
-
id: 4
@@ -33,6 +36,7 @@
authorize: 4 # owner
num_repos: 0
num_members: 1
+ can_create_org_repo: true
-
id: 5
@@ -42,6 +46,7 @@
authorize: 4 # owner
num_repos: 2
num_members: 2
+ can_create_org_repo: true
-
id: 6
@@ -51,6 +56,7 @@
authorize: 4 # owner
num_repos: 2
num_members: 1
+ can_create_org_repo: true
-
id: 7
@@ -60,6 +66,7 @@
authorize: 2 # write
num_repos: 1
num_members: 1
+ can_create_org_repo: false
-
id: 8
@@ -69,6 +76,7 @@
authorize: 2 # write
num_repos: 1
num_members: 1
+ can_create_org_repo: false
-
id: 9
@@ -78,6 +86,7 @@
authorize: 1 # read
num_repos: 1
num_members: 2
+ can_create_org_repo: false
-
id: 10
@@ -87,6 +96,7 @@
authorize: 1 # owner
num_repos: 0
num_members: 1
+ can_create_org_repo: false
-
id: 11
@@ -96,6 +106,7 @@
authorize: 1 # read
num_repos: 0
num_members: 0
+ can_create_org_repo: false
-
id: 12