mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
UX: Admins should only see their own PMs when searching in:all
Admins are technically allowed to access all PMs, but it can be confusing to include them all in search. Follow-up to e0605029dc58c681e61400042763aa8a43c584c7
This commit is contained in:
@ -348,11 +348,11 @@ describe Search do
|
||||
guardian: Guardian.new(u3))
|
||||
expect(results.posts.length).to eq(1)
|
||||
|
||||
# Admin
|
||||
# Admin doesn't see private topic
|
||||
results = Search.execute('spam',
|
||||
type_filter: 'all_topics',
|
||||
guardian: Guardian.new(u4))
|
||||
expect(results.posts.length).to eq(2)
|
||||
expect(results.posts.length).to eq(1)
|
||||
|
||||
# same keyword for different users
|
||||
results = Search.execute('ham',
|
||||
|
Reference in New Issue
Block a user