diff options
author | Unknwon <u@gogs.io> | 2015-12-11 19:24:57 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-11 19:24:57 -0500 |
commit | 59c965a5ec2553b40a76cc322855b62116eac5f0 (patch) | |
tree | 3f3f25f7eed2ed51a251343e5521416c1a13d635 /modules | |
parent | 76bdbcc969acd0e91cd3e10f5fdbfae3273df45b (diff) | |
download | gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.tar.gz gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.zip |
#2156 admin able to edit organization max repo creation
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/org.go | 11 | ||||
-rw-r--r-- | modules/bindata/bindata.go | 2 |
2 files changed, 7 insertions, 6 deletions
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 } |