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

This commit is contained in:
=Corey Hulen
2015-09-16 21:31:45 -07:00
parent e644b53b72
commit 1d37723307

View File

@@ -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)