From d2945cdd77bdf1ee03367a0d45624094fb936c19 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Wed, 22 Aug 2018 20:12:51 +0100 Subject: MM-11782: Make archived channels experimental and off-by-default. (#9281) * MM-11782: Make archived channels experimental and off-by-default. * Fix test. --- app/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index 299c9ce3a..0ce1bbe2d 100644 --- a/app/post.go +++ b/app/post.go @@ -648,7 +648,7 @@ func (a *App) DeletePostFiles(post *model.Post) { func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool) (*model.PostSearchResults, *model.AppError) { paramsList := model.ParseSearchParams(terms) - includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ViewArchivedChannels + includeDeleted := includeDeletedChannels && *a.Config().TeamSettings.ExperimentalViewArchivedChannels esInterface := a.Elasticsearch if license := a.License(); esInterface != nil && *a.Config().ElasticsearchSettings.EnableSearching && license != nil && *license.Features.Elasticsearch { -- cgit v1.2.3-1-g7c22