diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2019-10-14 20:20:42 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-14 19:20:42 +0100 |
commit | 366806db3219ee75010d7f699cc34e6264ab2685 (patch) | |
tree | 4fc2ea82913062299c72c7552cd817e493cb3410 /routers | |
parent | 54c137b373bc05885d710653faaf23ee18cc1807 (diff) | |
download | gitea-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.go | 9 |
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 { |