mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-03 00:44:35 -04:00
Add configuration option for default permission to create Organizations (#1686)
This commit is contained in:
parent
a85c5ab9ff
commit
51d0becb42
13 changed files with 27 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue