This project is read-only.

Show only authenticated items in Search

Topics: Customizing Orchard, General
Sep 23, 2014 at 9:03 PM

I have a module to enable authentication based on roles for content items. But when I search for a content item on the website, it shows all the items which satisfy the search text irrespective of the role of the logged in user. Is there a way to restrict the search results to show only the content items which are accessible to the logged in user?

Oct 1, 2014 at 6:20 AM
There is currently no way to do that, but this topic was discussed two weeks ago. There's an active issue for it here.
Oct 3, 2014 at 9:40 PM
Thanks for the reply. I have overriden the search controller and am filtering the content there.