mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:14:05 +01:00
Give all units to owner team (#1812)
This commit is contained in:
parent
9c66d1d9ea
commit
39348cd27e
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ func CreateOrganization(org, owner *User) (err error) {
|
||||||
Name: ownerTeamName,
|
Name: ownerTeamName,
|
||||||
Authorize: AccessModeOwner,
|
Authorize: AccessModeOwner,
|
||||||
NumMembers: 1,
|
NumMembers: 1,
|
||||||
|
UnitTypes: allRepUnitTypes,
|
||||||
}
|
}
|
||||||
if _, err = sess.Insert(t); err != nil {
|
if _, err = sess.Insert(t); err != nil {
|
||||||
return fmt.Errorf("insert owner team: %v", err)
|
return fmt.Errorf("insert owner team: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue