summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/team.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go
index 44f86b160..92fcbff93 100644
--- a/api/team.go
+++ b/api/team.go
@@ -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)