summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorDavid Svantesson <davidsvantesson@gmail.com>2019-10-14 20:20:42 +0200
committerzeripath <art27@cantab.net>2019-10-14 19:20:42 +0100
commit366806db3219ee75010d7f699cc34e6264ab2685 (patch)
tree4fc2ea82913062299c72c7552cd817e493cb3410 /routers
parent54c137b373bc05885d710653faaf23ee18cc1807 (diff)
downloadgitea-366806db3219ee75010d7f699cc34e6264ab2685.tar.gz
gitea-366806db3219ee75010d7f699cc34e6264ab2685.zip
Fix errors in create org UI regarding team access permission. (#8506)
Diffstat (limited to 'routers')
-rw-r--r--routers/org/org.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 3821b32216..85bc25217b 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -47,10 +47,11 @@ func CreatePost(ctx *context.Context, form auth.CreateOrgForm) {
}
org := &models.User{
- Name: form.OrgName,
- IsActive: true,
- Type: models.UserTypeOrganization,
- Visibility: form.Visibility,
+ Name: form.OrgName,
+ IsActive: true,
+ Type: models.UserTypeOrganization,
+ Visibility: form.Visibility,
+ RepoAdminChangeTeamAccess: form.RepoAdminChangeTeamAccess,
}
if err := models.CreateOrganization(org, ctx.User); err != nil {