Fixes GIT-698 allow ability to disable team creation for SSO

Этот коммит содержится в:
=Corey Hulen
2015-09-16 21:31:45 -07:00
родитель e644b53b72
Коммит 1d37723307

Просмотреть файл

@@ -100,6 +100,10 @@ func createTeamFromSSO(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if !isTreamCreationAllowed(c, team.Email) {
return
}
team.PreSave()
team.Name = model.CleanTeamName(team.Name)