Files
mostlymatter/api4
Mario de Frutos Dieguez cff7de9e68 [MM-24065] Guest users should be able to search by channel (#14302)
* Remove unnecessary check for PERMISSION_LIST_TEAM_CHANNELS

In the autocompleteChannelsForTeamForSearch method we're checking for
the PERMISSION_LIST_TEAM_CHANNELS permission in order to avoid filtering
channels in the autocomplete search but this check is not necessary.

Now we're going directly to the database to search for those channels
in this specific method and we're filtering by channel membership and
team so there is no chance that we are going to filter undesired
channels to the user.

[Here](https://github.com/mattermost/mattermost-server/blob/v5.22.0/store/sqlstore/channel_store.go#L2014)
is the query where you can see the filtering we're making
2020-04-20 11:21:51 +02:00
..
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-02-26 15:11:24 +01:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00
2020-04-08 00:52:30 -04:00