PLT-4665 Fix Max Channels limit wrong count (#4512)

Этот коммит содержится в:
enahum
2016-11-10 11:23:55 -03:00
коммит произвёл Harrison Healey
родитель 8c76560b48
Коммит be17e05d73
3 изменённых файлов: 28 добавлений и 1 удалений

Просмотреть файл

@@ -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 {