mirror of https://github.com/go-gitea/gitea.git
Fix owner team access mode value in team_unit table (#24224)
Partly backport #23675 Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
b00f7c3c54
commit
5ccb626cda
|
@ -338,9 +338,10 @@ func CreateOrganization(org *Organization, owner *user_model.User) (err error) {
|
||||||
units := make([]TeamUnit, 0, len(unit.AllRepoUnitTypes))
|
units := make([]TeamUnit, 0, len(unit.AllRepoUnitTypes))
|
||||||
for _, tp := range unit.AllRepoUnitTypes {
|
for _, tp := range unit.AllRepoUnitTypes {
|
||||||
units = append(units, TeamUnit{
|
units = append(units, TeamUnit{
|
||||||
OrgID: org.ID,
|
OrgID: org.ID,
|
||||||
TeamID: t.ID,
|
TeamID: t.ID,
|
||||||
Type: tp,
|
Type: tp,
|
||||||
|
AccessMode: perm.AccessModeOwner,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue