summaryrefslogtreecommitdiffstats
path: root/api/authorization.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-03 09:53:59 -0500
committerenahum <nahumhbl@gmail.com>2017-01-03 11:53:59 -0300
commit42e04d92c47dd7226b7e28e396f8d8d6f36e053b (patch)
treee0f69e9a9400c8e562558affe8f2d86444f16aab /api/authorization.go
parent547524e5ad502e670ba3d2c2ec18f061ceff95ff (diff)
downloadchat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.tar.gz
chat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.tar.bz2
chat-42e04d92c47dd7226b7e28e396f8d8d6f36e053b.zip
Adding memcache to getchannel (#4928)
Diffstat (limited to 'api/authorization.go')
-rw-r--r--api/authorization.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/authorization.go b/api/authorization.go
index 8b3140b0f..e931c4b33 100644
--- a/api/authorization.go
+++ b/api/authorization.go
@@ -79,7 +79,7 @@ func HasPermissionToChannelContext(c *Context, channelId string, permission *mod
}
}
- cc := Srv.Store.Channel().Get(channelId)
+ cc := Srv.Store.Channel().Get(channelId, true)
if ccresult := <-cc; ccresult.Err == nil {
channel := ccresult.Data.(*model.Channel)