Merge pull request #903 from mattermost/PLT-44

PLT-44 allow team switching without the need to login
Этот коммит содержится в:
Christopher Speller
2015-10-05 10:20:14 -04:00
родитель 8595fd85c7 3b34e73132
Коммит f4afabd679
9 изменённых файлов: 127 добавлений и 25 удалений

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

@@ -281,7 +281,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
}