Fixing 1 more case

This commit is contained in:
=Corey Hulen
2015-09-25 09:51:27 -07:00
parent f75475d3d0
commit 08a343c372
2 changed files with 15 additions and 3 deletions

View File

@@ -145,8 +145,14 @@ func root(c *api.Context, w http.ResponseWriter, r *http.Request) {
return
}
page := NewHtmlTemplatePage("signup_team", "Signup")
page.Render(c, w)
if len(c.Session.UserId) == 0 {
page := NewHtmlTemplatePage("signup_team", "Signup")
page.Render(c, w)
} else {
page := NewHtmlTemplatePage("home", "Home")
page.Props["TeamURL"] = c.GetTeamURL()
page.Render(c, w)
}
}
func signup(c *api.Context, w http.ResponseWriter, r *http.Request) {