Simplified single org settings, now auto_assign_org, and auto_assign_org_role, new [users] config section, Closes #1585

This commit is contained in:
Torkel Ödegaard
2015-03-11 16:19:29 +01:00
parent 4f03a86414
commit f3d4d2782f
7 changed files with 35 additions and 36 deletions

View File

@@ -56,7 +56,7 @@ func OAuthLogin(ctx *middleware.Context) {
// create account if missing
if err == m.ErrUserNotFound {
if setting.DisableUserSignUp {
if !setting.AllowUserSignUp {
ctx.Redirect(setting.AppSubUrl + "/login")
return
}