diff options
Diffstat (limited to 'api4/channel.go')
-rw-r--r-- | api4/channel.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/api4/channel.go b/api4/channel.go index 5d1651d74..c8235c5f1 100644 --- a/api4/channel.go +++ b/api4/channel.go @@ -456,11 +456,6 @@ func searchChannelsForTeam(c *Context, w http.ResponseWriter, r *http.Request) { return } - if len(props.Term) == 0 { - c.SetInvalidParam("term") - return - } - if !app.SessionHasPermissionToTeam(c.Session, c.Params.TeamId, model.PERMISSION_LIST_TEAM_CHANNELS) { c.SetPermissionError(model.PERMISSION_LIST_TEAM_CHANNELS) return |