Closed (works as designed)
Project:
Restricted Search
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2007 at 19:50 UTC
Updated:
16 Oct 2007 at 20:36 UTC
Great module - I was wondering if it would be possible to restrict content type search ability by role?
Comments
Comment #1
deviantintegral commentedHi,
Unfortunately, it's not very easy to do what you're asking. I actually investigated this before I wrote the module. By default, search.module indexes everything, and then filters the results based on what permissions exist in the node access table due to a node_load call in node_search. What this means is that you can't easily allow users to view content without viewing it in search.
I suppose you could write some code to hook into the search results screen, but it would have to maintain permissions seperate from the node_access tables. If it is possible, it would be better to have it as a separate module.
If you find a better solution, please let me know :)
--Andrew