mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Allow mods/admins to search whispers
This commit is contained in:
parent
c4b1b848bc
commit
46bef4fad0
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class Search
|
|||
|
||||
def posts_query(limit, opts=nil)
|
||||
opts ||= {}
|
||||
posts = Post.where(post_type: Post.types[:regular])
|
||||
posts = Post.where(post_type: Topic.visible_post_types(@guardian.user))
|
||||
.joins(:post_search_data, :topic)
|
||||
.joins("LEFT JOIN categories ON categories.id = topics.category_id")
|
||||
.where("topics.deleted_at" => nil)
|
||||
|
|
Loading…
Reference in a new issue