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

@@ -9,7 +9,7 @@ import (
// POST /api/user/signup
func SignUp(c *middleware.Context, cmd m.CreateUserCommand) {
if setting.DisableUserSignUp {
if !setting.AllowUserSignUp {
c.JsonApiErr(401, "User signup is disabled", nil)
return
}