diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-10-08 10:00:31 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-10-08 10:00:31 -0400 |
commit | 7a601afc64c20ce566efc59ed9f42f89fac3d26b (patch) | |
tree | e7858e8161014d860735c954a173b8d4850179f8 /api | |
parent | a6629f95fe958d2a308e62b5f662f9eca7aea0b2 (diff) | |
parent | 81b7f649ed44875aaf08d7121ba12ee9e89e798f (diff) | |
download | chat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.tar.gz chat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.tar.bz2 chat-7a601afc64c20ce566efc59ed9f42f89fac3d26b.zip |
Merge pull request #966 from mattermost/GIT-960
GIT-960 show error when you cannot create a team
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go index bb60e0720..9021fefb9 100644 --- a/api/team.go +++ b/api/team.go @@ -248,7 +248,7 @@ func createTeam(c *Context, w http.ResponseWriter, r *http.Request) { func CreateTeam(c *Context, team *model.Team) *model.Team { if !utils.Cfg.EmailSettings.EnableSignUpWithEmail { c.Err = model.NewAppError("createTeam", "Team sign-up with email is disabled.", "") - c.Err.StatusCode = http.StatusNotImplemented + c.Err.StatusCode = http.StatusForbidden return nil } |