diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-21 20:38:31 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-21 20:38:31 -0700 |
commit | afcff9b301ed45687ab7021709af8b2cf338355b (patch) | |
tree | 55f8c51b6c012e5663b77bd88e202f4aa21a3d9c /api/team.go | |
parent | e78c79b83213efc40bffc5ef42071fedb85d6061 (diff) | |
download | chat-afcff9b301ed45687ab7021709af8b2cf338355b.tar.gz chat-afcff9b301ed45687ab7021709af8b2cf338355b.tar.bz2 chat-afcff9b301ed45687ab7021709af8b2cf338355b.zip |
Fixing unit tests
Diffstat (limited to 'api/team.go')
-rw-r--r-- | api/team.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go index f0025fdbd..4531c83b9 100644 --- a/api/team.go +++ b/api/team.go @@ -85,7 +85,8 @@ func createTeamFromSSO(c *Context, w http.ResponseWriter, r *http.Request) { params := mux.Vars(r) service := params["service"] - if !utils.IsServiceAllowed(service) { + sso := utils.Cfg.GetSSOService(service) + if sso != nil && !sso.Allow { c.SetInvalidParam("createTeamFromSSO", "service") return } |