summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-11 19:24:57 -0500
committerUnknwon <u@gogs.io>2015-12-11 19:24:57 -0500
commit59c965a5ec2553b40a76cc322855b62116eac5f0 (patch)
tree3f3f25f7eed2ed51a251343e5521416c1a13d635 /routers/org
parent76bdbcc969acd0e91cd3e10f5fdbfae3273df45b (diff)
downloadgitea-59c965a5ec2553b40a76cc322855b62116eac5f0.tar.gz
gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.zip
#2156 admin able to edit organization max repo creation
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go
index d82891747a..30f8cabe3e 100644
--- a/routers/org/setting.go
+++ b/routers/org/setting.go
@@ -66,6 +66,10 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateOrgSettingForm) {
org.Name = form.Name
org.LowerName = strings.ToLower(form.Name)
+ if ctx.User.IsAdmin {
+ org.MaxRepoCreation = form.MaxRepoCreation
+ }
+
org.FullName = form.FullName
org.Description = form.Description
org.Website = form.Website