diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-09 10:16:14 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-09 13:16:14 -0400 |
commit | 0f66b6e72621842467d0e368b95ee58f485d4ace (patch) | |
tree | 444f9210a151cb735fe0502d4bb47c324592c0e6 /app/post.go | |
parent | 70e5f00241473c27a3008959ce08832c75e76ba8 (diff) | |
download | chat-0f66b6e72621842467d0e368b95ee58f485d4ace.tar.gz chat-0f66b6e72621842467d0e368b95ee58f485d4ace.tar.bz2 chat-0f66b6e72621842467d0e368b95ee58f485d4ace.zip |
store/sqlstore cleanup and postgres tests (#7595)
* sqlstore cleanup / postgres tests
* remove stopped containers
* cmd/platform compile fix
* remove test-postgres target from makefile
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go index 497cab5a6..fe9443177 100644 --- a/app/post.go +++ b/app/post.go @@ -613,6 +613,10 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr return postList, nil } else { + if !*utils.Cfg.ServiceSettings.EnablePostSearch { + return nil, model.NewAppError("SearchPostsInTeam", "store.sql_post.search.disabled", nil, fmt.Sprintf("teamId=%v userId=%v", teamId, userId), http.StatusNotImplemented) + } + channels := []store.StoreChannel{} for _, params := range paramsList { |