diff options
author | Lauris BH <lauris@nix.lv> | 2017-05-08 22:51:53 +0300 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-05-08 21:51:53 +0200 |
commit | 51d0becb4232eab6b18959ccc4a895e5df30c4dc (patch) | |
tree | d119ca2bef3ca44147801cd57e4cf2190690f65a /models | |
parent | a85c5ab9ff60dab58b2bf713479460caac8e9567 (diff) | |
download | gitea-51d0becb4232eab6b18959ccc4a895e5df30c4dc.tar.gz gitea-51d0becb4232eab6b18959ccc4a895e5df30c4dc.zip |
Add configuration option for default permission to create Organizations (#1686)
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 59ce631172..e95bf5cd44 100644 --- a/models/user.go +++ b/models/user.go @@ -706,7 +706,7 @@ func CreateUser(u *User) (err error) { return err } u.EncodePasswd() - u.AllowCreateOrganization = true + u.AllowCreateOrganization = setting.Service.DefaultAllowCreateOrganization u.MaxRepoCreation = -1 sess := x.NewSession() |