diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go index d2801a30ce..c6d2562f15 100644 --- a/models/org.go +++ b/models/org.go @@ -10,6 +10,7 @@ import ( "strings" "code.gitea.io/gitea/models/db" + "code.gitea.io/gitea/models/unit" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/storage" @@ -202,8 +203,8 @@ func CreateOrganization(org, owner *User) (err error) { } // insert units for team - units := make([]TeamUnit, 0, len(AllRepoUnitTypes)) - for _, tp := range AllRepoUnitTypes { + units := make([]TeamUnit, 0, len(unit.AllRepoUnitTypes)) + for _, tp := range unit.AllRepoUnitTypes { units = append(units, TeamUnit{ OrgID: org.ID, TeamID: t.ID, |