summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-01 17:52:47 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-01 17:52:47 -0700
commit430806301da06e927b8d7d6dcba20ea4b6b6d6c1 (patch)
tree8a457efc7d5570679c3a2ae607b0a52f79cfa981 /api/channel.go
parent013df9f6614fcf8816dc29bc8f07d05a605e47e0 (diff)
downloadchat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.tar.gz
chat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.tar.bz2
chat-430806301da06e927b8d7d6dcba20ea4b6b6d6c1.zip
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 896e22793..28642ff67 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -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
}