summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-31 13:33:22 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-31 13:33:22 -0700
commit7de7de6ad0882ef25ed9be5bbd91576cc822206f (patch)
treedbd7268878456d9fc0dce82a72b804d14cc6ee21 /api/user.go
parent82a54f9363e3a6b7d4268ef951ac427e94deacb2 (diff)
downloadchat-7de7de6ad0882ef25ed9be5bbd91576cc822206f.tar.gz
chat-7de7de6ad0882ef25ed9be5bbd91576cc822206f.tar.bz2
chat-7de7de6ad0882ef25ed9be5bbd91576cc822206f.zip
MM-2056 fixes problem with creating team
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 3796dde2a..d69244fad 100644
--- a/api/user.go
+++ b/api/user.go
@@ -58,7 +58,7 @@ func InitUser(r *mux.Router) {
}
func createUser(c *Context, w http.ResponseWriter, r *http.Request) {
- if !utils.Cfg.ServiceSettings.AllowEmailSignUp {
+ if utils.Cfg.ServiceSettings.DisableEmailSignUp {
c.Err = model.NewAppError("signupTeam", "User sign-up with email is disabled.", "")
c.Err.StatusCode = http.StatusNotImplemented
return