aboutsummaryrefslogtreecommitdiffstats
path: root/models/user_test.go
diff options
context:
space:
mode:
authorjpicht <github@julian-picht.de>2019-05-24 18:40:45 +0200
committerLauris BH <lauris@nix.lv>2019-05-24 19:40:45 +0300
commit8cd4c2242c6c0b3f53d9bd28b4b4e2cebfe46a04 (patch)
tree6022ca6c96001e23c97b56394e6a591db98dc691 /models/user_test.go
parent6ff9349a0941a25d5f0832936dd501bc8842927c (diff)
downloadgitea-8cd4c2242c6c0b3f53d9bd28b4b4e2cebfe46a04.tar.gz
gitea-8cd4c2242c6c0b3f53d9bd28b4b4e2cebfe46a04.zip
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>
Diffstat (limited to 'models/user_test.go')
-rw-r--r--models/user_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/user_test.go b/models/user_test.go
index f0a8dbdd47..6af9752c9b 100644
--- a/models/user_test.go
+++ b/models/user_test.go
@@ -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