From 81b7f649ed44875aaf08d7121ba12ee9e89e798f Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 7 Oct 2015 10:07:08 -0700 Subject: GIT-960 show error when you cannot create a team --- api/team.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/team.go') diff --git a/api/team.go b/api/team.go index 8e5d634aa..152e3d6d7 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 } -- cgit v1.2.3-1-g7c22