Removed check of email signup from creating a team (#3029)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
50454bc81e
Коммит
d2b556aa77
@@ -222,11 +222,6 @@ func createTeam(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CreateTeam(c *Context, team *model.Team) *model.Team {
|
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 {
|
if team == nil {
|
||||||
c.SetInvalidParam("createTeam", "team")
|
c.SetInvalidParam("createTeam", "team")
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user