summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-16 21:31:45 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-16 21:31:45 -0700
commit1d37723307704752390c85d4c821ae46a94405eb (patch)
tree1c367467158f74a2e4d4aea0cfbf5327b068546b
parente644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff)
downloadchat-1d37723307704752390c85d4c821ae46a94405eb.tar.gz
chat-1d37723307704752390c85d4c821ae46a94405eb.tar.bz2
chat-1d37723307704752390c85d4c821ae46a94405eb.zip
Fixes GIT-698 allow ability to disable team creation for SSO
-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)