mirror of
https://github.com/discourse/discourse.git
synced 2025-05-11 04:04:38 +08:00
confirm in:private works for non staff
This commit is contained in:
parent
5bbc477baa
commit
9b84cd832c
@ -198,6 +198,12 @@ describe Search do
|
|||||||
|
|
||||||
expect(results.posts.length).to eq(1)
|
expect(results.posts.length).to eq(1)
|
||||||
|
|
||||||
|
results = Search.execute('mars in:private',
|
||||||
|
search_context: post.user,
|
||||||
|
guardian: Guardian.new(post.user))
|
||||||
|
|
||||||
|
expect(results.posts.length).to eq(1)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user