diff options
author | yp05327 <576951401@qq.com> | 2023-04-22 15:53:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 08:53:03 +0200 |
commit | 5ccb626cda8ff6e20cd111e033c4ebc281eec4bf (patch) | |
tree | 4b004388c3f6286c018b720c8ce8637c074f0d82 /models/organization/org.go | |
parent | b00f7c3c545c6a00a747a5aea7596f45c50157ac (diff) | |
download | gitea-5ccb626cda8ff6e20cd111e033c4ebc281eec4bf.tar.gz gitea-5ccb626cda8ff6e20cd111e033c4ebc281eec4bf.zip |
Fix owner team access mode value in team_unit table (#24224)
Partly backport #23675
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'models/organization/org.go')
-rw-r--r-- | models/organization/org.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/models/organization/org.go b/models/organization/org.go index 269b3e8328..fa2a604721 100644 --- a/models/organization/org.go +++ b/models/organization/org.go @@ -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, }) } |