summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-01 08:28:03 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-01 08:28:03 -0400
commit1dddc304147c4e25abcd9d110b2c90fbcef7cc26 (patch)
treed77c6acdb24c707909e8f2313c834021b2dea2f1 /api/team.go
parenta06a07df89d83a94e875519a4e18973a6785f924 (diff)
parent7de7de6ad0882ef25ed9be5bbd91576cc822206f (diff)
downloadchat-1dddc304147c4e25abcd9d110b2c90fbcef7cc26.tar.gz
chat-1dddc304147c4e25abcd9d110b2c90fbcef7cc26.tar.bz2
chat-1dddc304147c4e25abcd9d110b2c90fbcef7cc26.zip
Merge pull request #528 from mattermost/MM-2056
HOTFIX MM-2056 fixes problem with creating team
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/team.go b/api/team.go
index e34b3a610..8cce384c3 100644
--- a/api/team.go
+++ b/api/team.go
@@ -36,7 +36,7 @@ func InitTeam(r *mux.Router) {
}
func signupTeam(c *Context, w http.ResponseWriter, r *http.Request) {
- if !utils.Cfg.ServiceSettings.AllowEmailSignUp {
+ if utils.Cfg.ServiceSettings.DisableEmailSignUp {
c.Err = model.NewAppError("signupTeam", "Team sign-up with email is disabled.", "")
c.Err.StatusCode = http.StatusNotImplemented
return
@@ -139,7 +139,7 @@ func createTeamFromSSO(c *Context, w http.ResponseWriter, r *http.Request) {
}
func createTeamFromSignup(c *Context, w http.ResponseWriter, r *http.Request) {
- if !utils.Cfg.ServiceSettings.AllowEmailSignUp {
+ if utils.Cfg.ServiceSettings.DisableEmailSignUp {
c.Err = model.NewAppError("createTeamFromSignup", "Team sign-up with email is disabled.", "")
c.Err.StatusCode = http.StatusNotImplemented
return
@@ -239,7 +239,7 @@ func createTeamFromSignup(c *Context, w http.ResponseWriter, r *http.Request) {
}
func createTeam(c *Context, w http.ResponseWriter, r *http.Request) {
- if !utils.Cfg.ServiceSettings.AllowEmailSignUp {
+ if utils.Cfg.ServiceSettings.DisableEmailSignUp {
c.Err = model.NewAppError("createTeam", "Team sign-up with email is disabled.", "")
c.Err.StatusCode = http.StatusNotImplemented
return