diff options
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 |
commit | 1d37723307704752390c85d4c821ae46a94405eb (patch) | |
tree | 1c367467158f74a2e4d4aea0cfbf5327b068546b | |
parent | e644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff) | |
download | chat-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.go | 4 |
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) |