diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-17 15:52:03 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-17 15:52:03 -0400 |
commit | d2b556aa77cc8e8f7d7aef340950fb632fba2aa6 (patch) | |
tree | 11fb464ee769ae3e490489ed106990a18e25ef5c /api | |
parent | 50454bc81e3c14f4d32374f684e4e60190cd72d1 (diff) | |
download | chat-d2b556aa77cc8e8f7d7aef340950fb632fba2aa6.tar.gz chat-d2b556aa77cc8e8f7d7aef340950fb632fba2aa6.tar.bz2 chat-d2b556aa77cc8e8f7d7aef340950fb632fba2aa6.zip |
Removed check of email signup from creating a team (#3029)
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 5 |
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") |