Skip to content

Commit

Permalink
Fix owner team access mode value in team_unit table (#24224)
Browse files Browse the repository at this point in the history
Partly backport #23675

Co-authored-by: Giteabot <teabot@gitea.io>
  • Loading branch information
yp05327 and GiteaBot authored Apr 22, 2023
1 parent b00f7c3 commit 5ccb626
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions models/organization/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,10 @@ func CreateOrganization(org *Organization, owner *user_model.User) (err error) {
units := make([]TeamUnit, 0, len(unit.AllRepoUnitTypes))
for _, tp := range unit.AllRepoUnitTypes {
units = append(units, TeamUnit{
OrgID: org.ID,
TeamID: t.ID,
Type: tp,
OrgID: org.ID,
TeamID: t.ID,
Type: tp,
AccessMode: perm.AccessModeOwner,
})
}

Expand Down

0 comments on commit 5ccb626

Please sign in to comment.