Hi

Thank you for this very useful module. It has really helped me streamline things as visualized.

But there remains an issue, as all content-types are shown in 'Search For' for all roles. Hence even those content-types that are allowed to be submitted or viewed by a particular role can be searched upon by those who do not have permission to do so.
Is it possible to limit the 'content-types' w.r.t. user roles?

Thanks & Regards

Comments

dtabach’s picture

If I correctly recall, the Taxonomy Access module – the 'full' one, not the 'lite' – allows limiting search by role for given terms. You will have to assign a vocabulary , for example, 'searchablity', to the content types you want to hide from certain roles.

ms1’s picture

I already have the Taxonomy Access Control module enabled, but it does not limit the searchibility options that shows with this module.
I tried to configure using 'Taxonomy-access' it, but even though I disabled all options for a content-type, I see that the search-option in the dropdown is still available, although I may not get the results on searching, since the access permissions are denied.

But I found that the 'Search-Type' module itself enables the options to limit the content-types in the drop-down for search. This settings can be found (once the module is enabled) at :
admin --> search-settings..
It is not role specific, but still helps me limit the content-type visibilities generically.

Thanks & Regards

nedjo’s picture

Title: How to limit the content-types by user-roles? » Ability to limit the content-types by user-roles
Category: support » feature

We could and should at least pass the content type through node_access('view', $type), to ensure the user has access to that type of content.