Hello. I need to filter search results so that certain content types results do not show for unauthenticated users, or authenticated users without permissions. How can I do this? The idea is not to modify any of the standard modules, such as node.module or search.module.

Thanks in advance!

Comments

gpk’s picture

Search results are automatically filtered to show only pages that you have access to. Your real problem may be that for anonymous (unauthenticated) visitors there is only the single control "access content" - or not! In which case something like http://drupal.org/project/tac_lite should help. This allows per-page access control, but you can use it set up an individual content type so that it is always inaccessible to anonymous. There may be other modues that do this also.

gpk
----
www.alexoria.co.uk