From 59c965a5ec2553b40a76cc322855b62116eac5f0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 11 Dec 2015 19:24:57 -0500 Subject: #2156 admin able to edit organization max repo creation --- routers/org/setting.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routers/org') diff --git a/routers/org/setting.go b/routers/org/setting.go index d8289174..30f8cabe 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 -- cgit v1.2.3