Browse Source

Give all units to owner team (#1812)

for-closed-social
Ethan Koenig 7 years ago
committed by Lunny Xiao
parent
commit
39348cd27e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/org.go

+ 1
- 0
models/org.go 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)

Loading…
Cancel
Save