mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Restrict include:unlisted search option to users that can view unlisted topics (#27977)
This commit is contained in:
@@ -937,7 +937,7 @@ class Search
|
||||
|
||||
nil
|
||||
elsif word =~ /\Ainclude:(invisible|unlisted)\z/i
|
||||
@include_invisible = true
|
||||
@include_invisible = true if @guardian.can_see_unlisted_topics?
|
||||
nil
|
||||
else
|
||||
found ? nil : word
|
||||
|
||||
Reference in New Issue
Block a user