소스 검색

Fix owner team access mode value in team_unit table (#24224)

Partly backport #23675

Co-authored-by: Giteabot <teabot@gitea.io>
tags/v1.19.2
yp05327 1 년 전
부모
커밋
5ccb626cda
No account linked to committer's email address
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4
    3
      models/organization/org.go

+ 4
- 3
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,
})
}


Loading…
취소
저장