diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-20 10:04:17 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-20 10:04:17 -0600 |
commit | 11c035aef45fbc6dfbc360123611108a199eca79 (patch) | |
tree | e0edabe17ad251a029214ed98a9f7ea66d880a91 /api/web_conn.go | |
parent | 640d3018c9a75e7c85da55c3483396e31a6de994 (diff) | |
download | chat-11c035aef45fbc6dfbc360123611108a199eca79.tar.gz chat-11c035aef45fbc6dfbc360123611108a199eca79.tar.bz2 chat-11c035aef45fbc6dfbc360123611108a199eca79.zip |
PLT-7 adding loc db calls for oauth table
Diffstat (limited to 'api/web_conn.go')
-rw-r--r-- | api/web_conn.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/web_conn.go b/api/web_conn.go index 2b0e29038..aed16aa55 100644 --- a/api/web_conn.go +++ b/api/web_conn.go @@ -8,6 +8,7 @@ import ( "github.com/gorilla/websocket" "github.com/mattermost/platform/model" "github.com/mattermost/platform/store" + "github.com/mattermost/platform/utils" "time" ) @@ -107,7 +108,7 @@ func (c *WebConn) writePump() { } func (c *WebConn) updateChannelAccessCache(channelId string) bool { - allowed := hasPermissionsToChannel(Srv.Store.Channel().CheckPermissionsTo(c.TeamId, channelId, c.UserId)) + allowed := hasPermissionsToChannel(Srv.Store.Channel().CheckPermissionsTo(utils.T, c.TeamId, channelId, c.UserId)) c.ChannelAccessCache[channelId] = allowed return allowed |