summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-17 17:51:42 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-17 17:51:42 -0400
commitedd453c6cd6daf1b4c6e1ea7ce2721db16e25214 (patch)
treeb5d616a061d949fc894fe07f03c06d2b20338476 /api/team.go
parent0fe75cb7826944a3352705d5e78eba1d12cc213a (diff)
parentac509b114df1c1b4b841eded74fb797805e0162d (diff)
downloadchat-edd453c6cd6daf1b4c6e1ea7ce2721db16e25214.tar.gz
chat-edd453c6cd6daf1b4c6e1ea7ce2721db16e25214.tar.bz2
chat-edd453c6cd6daf1b4c6e1ea7ce2721db16e25214.zip
Merge branch 'release-3.0'
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/api/team.go b/api/team.go
index 52d01b1cc..3ed9b70af 100644
--- a/api/team.go
+++ b/api/team.go
@@ -222,11 +222,6 @@ func createTeam(c *Context, w http.ResponseWriter, r *http.Request) {
}
func CreateTeam(c *Context, team *model.Team) *model.Team {
- if !utils.Cfg.EmailSettings.EnableSignUpWithEmail {
- c.Err = model.NewLocAppError("createTeam", "api.team.create_team.email_disabled.app_error", nil, "")
- c.Err.StatusCode = http.StatusForbidden
- return nil
- }
if team == nil {
c.SetInvalidParam("createTeam", "team")