Submitted by admin on Tue, 07/09/2019 - 15:15

In some instances, you may want to restrict your views page (in this case to permit only selected roles to view contents categorized in certain taxonomy terms). You also, however, will want some text available and viewable publicly on the same Views URL or page. To do this, you may follow these simple steps.
Taxonomy Access Control Lite (TAC) Module
- Install the TAC module
https://www.drupal.org/project/tac_lite
- Configure a scheme, e.g. View content, then limit or allow permissions by role. This completely hides the Views page and content. However, this will completely render the view as Access denied, with all the global header/text messages blocked as well.
Views Role Based Global Text Module
- Comes in Views Role Based Global Text module
https://www.drupal.org/project/views_role_based_global_text
- Install and configure to allow display for anonymous (public) role. There is a "Role" setting while entering text either on header or footer.
See also related article Drupal 7 Views - How to show a global text message publicly but hidden for logged in users
Other similar modules:
- Permissions by Term (D7 version unsupported but available)
https://www.drupal.org/project/permissions_by_term
- Access to Term page by Role
https://www.drupal.org/project/term_per_role
- Role Vocabulary
https://www.drupal.org/project/role_vocabulary
Leave a Comment