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/auth/org.go | |
parent | 76bdbcc969acd0e91cd3e10f5fdbfae3273df45b (diff) | |
download | gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.tar.gz gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.zip |
#2156 admin able to edit organization max repo creation
Diffstat (limited to 'modules/auth/org.go')
-rw-r--r-- | modules/auth/org.go | 11 |
1 files changed, 6 insertions, 5 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 { |