forked from forgejo/forgejo
Fix default for allowing new organization creation for new users (#7017)
Fixed #6542 When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com> * fix TestCreateUser_Issue5882 Signed-off-by: Julian Picht <julian.picht@gmail.com>
This commit is contained in:
parent
6ff9349a09
commit
8cd4c2242c
2 changed files with 3 additions and 2 deletions
|
@ -261,6 +261,8 @@ func TestCreateUser_Issue5882(t *testing.T) {
|
|||
{&User{Name: "GiteaBot2", Email: "GiteaBot2@gitea.io", Passwd: passwd, MustChangePassword: false}, true},
|
||||
}
|
||||
|
||||
setting.Service.DefaultAllowCreateOrganization = true
|
||||
|
||||
for _, v := range tt {
|
||||
setting.Admin.DisableRegularOrgCreation = v.disableOrgCreation
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue