1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Give all units to owner team (#1812)

This commit is contained in:
Ethan Koenig 2017-05-26 04:03:37 -04:00 committed by Lunny Xiao
parent 9c66d1d9ea
commit 39348cd27e

View File

@ -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)