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 --- modules/auth/org.go | 11 ++++++----- modules/bindata/bindata.go | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/auth/org.go b/modules/auth/org.go index 084ad43a8a..8af4ad55d8 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -25,11 +25,12 @@ func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) bind } type UpdateOrgSettingForm struct { - Name string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"` - FullName string `binding:"MaxSize(100)"` - Description string `binding:"MaxSize(255)"` - Website string `binding:"Url;MaxSize(100)"` - Location string `binding:"MaxSize(50)"` + Name string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"` + FullName string `binding:"MaxSize(100)"` + Description string `binding:"MaxSize(255)"` + Website string `binding:"Url;MaxSize(100)"` + Location string `binding:"MaxSize(50)"` + MaxRepoCreation int } func (f *UpdateOrgSettingForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { diff --git a/modules/bindata/bindata.go b/modules/bindata/bindata.go index 6013e7dd19..c4ce602aa8 100644 --- a/modules/bindata/bindata.go +++ b/modules/bindata/bindata.go @@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 48293, mode: os.FileMode(420), modTime: time.Unix(1449865728, 0)} + info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 48293, mode: os.FileMode(420), modTime: time.Unix(1449879514, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -- cgit v1.2.3