summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/org/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/org/org.go')
-rw-r--r--routers/api/v1/org/org.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go
index e0f36aa1e6..f4a634f4d5 100644
--- a/routers/api/v1/org/org.go
+++ b/routers/api/v1/org/org.go
@@ -264,7 +264,13 @@ func Edit(ctx *context.APIContext) {
if form.Visibility != "" {
org.Visibility = api.VisibilityModes[form.Visibility]
}
- if err := models.UpdateUserCols(org, "full_name", "description", "website", "location", "visibility"); err != nil {
+ if form.RepoAdminChangeTeamAccess != nil {
+ org.RepoAdminChangeTeamAccess = *form.RepoAdminChangeTeamAccess
+ }
+ if err := models.UpdateUserCols(org,
+ "full_name", "description", "website", "location",
+ "visibility", "repo_admin_change_team_access",
+ ); err != nil {
ctx.Error(http.StatusInternalServerError, "EditOrganization", err)
return
}