#2156 admin able to edit organization max repo creation

This commit is contained in:
Unknwon 2015-12-11 19:24:57 -05:00
parent 76bdbcc969
commit 59c965a5ec
12 changed files with 30 additions and 18 deletions

View file

@ -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