summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-11-10 11:23:55 -0300
committerHarrison Healey <harrisonmhealey@gmail.com>2016-11-10 09:23:55 -0500
commitbe17e05d7322f9c6e6cbf93bff1cfca63b73aa76 (patch)
treec877856f934ba2f732548a6dbc2f8a0afb95f7a1 /api/channel.go
parent8c76560b4849f8d1fdc3c3f1c2f1877459a30fca (diff)
downloadchat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.tar.gz
chat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.tar.bz2
chat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.zip
PLT-4665 Fix Max Channels limit wrong count (#4512)
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 2232786fd..81220a503 100644
--- a/api/channel.go
+++ b/api/channel.go
@@ -77,7 +77,7 @@ func createChannel(c *Context, w http.ResponseWriter, r *http.Request) {
if channel.TeamId == c.TeamId {
// Get total number of channels on current team
- if result := <-Srv.Store.Channel().GetChannels(channel.TeamId, c.Session.UserId); result.Err != nil {
+ if result := <-Srv.Store.Channel().GetTeamChannels(channel.TeamId); result.Err != nil {
c.Err = model.NewLocAppError("createChannel", "api.channel.get_channels.error", nil, result.Err.Message)
return
} else {