summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-26 04:03:37 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-26 16:03:37 +0800
commit39348cd27e4114c24234a65c542992273ec8b2b8 (patch)
treeb8544297ca1529b4dc5dfa5da07dd36868b8fd90
parent9c66d1d9ea102b50baefdaf1617a42bb741a4c3a (diff)
downloadgitea-39348cd27e4114c24234a65c542992273ec8b2b8.tar.gz
gitea-39348cd27e4114c24234a65c542992273ec8b2b8.zip
Give all units to owner team (#1812)
-rw-r--r--models/org.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/org.go b/models/org.go
index fb07c4aaf2..30a9b4c7e0 100644
--- a/models/org.go
+++ b/models/org.go
@@ -156,6 +156,7 @@ func CreateOrganization(org, owner *User) (err error) {
Name: ownerTeamName,
Authorize: AccessModeOwner,
NumMembers: 1,
+ UnitTypes: allRepUnitTypes,
}
if _, err = sess.Insert(t); err != nil {
return fmt.Errorf("insert owner team: %v", err)