diff options
author | enahum <nahumhbl@gmail.com> | 2016-11-10 11:23:55 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-10 09:23:55 -0500 |
commit | be17e05d7322f9c6e6cbf93bff1cfca63b73aa76 (patch) | |
tree | c877856f934ba2f732548a6dbc2f8a0afb95f7a1 /api | |
parent | 8c76560b4849f8d1fdc3c3f1c2f1877459a30fca (diff) | |
download | chat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.tar.gz chat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.tar.bz2 chat-be17e05d7322f9c6e6cbf93bff1cfca63b73aa76.zip |
PLT-4665 Fix Max Channels limit wrong count (#4512)
Diffstat (limited to 'api')
-rw-r--r-- | api/channel.go | 2 |
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 { |