summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-05 10:20:14 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-05 10:20:14 -0400
commitf4afabd67999baabd06038cb6f3d664f2ebf77ba (patch)
treef839f71e9c072569fa119dd5a133daa955012f1b /api/channel.go
parent8595fd85c7b64e0e7f928abd398f1e0f5d62eea8 (diff)
parent3b34e7313251c5c9b7dde8c5916f83ab9e9f2a31 (diff)
downloadchat-f4afabd67999baabd06038cb6f3d664f2ebf77ba.tar.gz
chat-f4afabd67999baabd06038cb6f3d664f2ebf77ba.tar.bz2
chat-f4afabd67999baabd06038cb6f3d664f2ebf77ba.zip
Merge pull request #903 from mattermost/PLT-44
PLT-44 allow team switching without the need to login
Diffstat (limited to 'api/channel.go')
-rw-r--r--api/channel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/channel.go b/api/channel.go
index 6494e3528..5e13fa18a 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -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
}