PLT-44 allow team switching without the need to login

Этот коммит содержится в:
=Corey Hulen
2015-10-01 17:52:47 -07:00
родитель 013df9f661
Коммит 430806301d
9 изменённых файлов: 109 добавлений и 15 удалений

Просмотреть файл

@@ -282,7 +282,7 @@ func getChannels(c *Context, w http.ResponseWriter, r *http.Request) {
// lets make sure the user is valid
if result := <-Srv.Store.User().Get(c.Session.UserId); result.Err != nil {
c.Err = result.Err
c.RemoveSessionCookie(w)
c.RemoveSessionCookie(w, r)
l4g.Error("Error in getting users profile for id=%v forcing logout", c.Session.UserId)
return
}