summaryrefslogtreecommitdiffstats
path: root/models/organization/org.go
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-22 15:53:03 +0900
committerGitHub <noreply@github.com>2023-04-22 08:53:03 +0200
commit5ccb626cda8ff6e20cd111e033c4ebc281eec4bf (patch)
tree4b004388c3f6286c018b720c8ce8637c074f0d82 /models/organization/org.go
parentb00f7c3c545c6a00a747a5aea7596f45c50157ac (diff)
downloadgitea-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.go7
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,
})
}
table28-update-psalm-baseline Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/robots.txt
blob: 1f53798bb4fe33c86020be7f10c44f29486fd190 (plain)
1
2
User-agent: *
Disallow: /