summaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-11-02 12:34:18 -0800
committer=Corey Hulen <corey@hulen.com>2015-11-02 12:34:18 -0800
commit6db2dd90793db3e10464c342b27e24764655cb1b (patch)
tree372535a7d7140c3f45bb7d6a06ca3bc78a19a194 /web/web.go
parent16171468dd51bb60216b5b9fa26866ec0c38d81c (diff)
downloadchat-6db2dd90793db3e10464c342b27e24764655cb1b.tar.gz
chat-6db2dd90793db3e10464c342b27e24764655cb1b.tar.bz2
chat-6db2dd90793db3e10464c342b27e24764655cb1b.zip
PLT-951 PLT-972 fixing issues with team directory
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go
index 34f4df08f..51f6664b6 100644
--- a/web/web.go
+++ b/web/web.go
@@ -170,7 +170,7 @@ func root(c *api.Context, w http.ResponseWriter, r *http.Request) {
page.Props[team.Name] = team.DisplayName
}
- if len(teams) == 1 && *utils.Cfg.TeamSettings.EnableTeamListing {
+ if len(teams) == 1 && *utils.Cfg.TeamSettings.EnableTeamListing && !utils.Cfg.TeamSettings.EnableTeamCreation {
http.Redirect(w, r, c.GetSiteURL()+"/"+teams[0].Name, http.StatusTemporaryRedirect)
return
}