This project is not covered by Drupal’s security advisory policy.

Views Filter Role Access provides a powerful yet simple way to restrict the visibility of specific filters within a View based on user roles.

Key Features:

  • Adds a "Visibility" setting to every filter in the Views UI.
  • Scrollable role selection container for sites with many roles (50+).
  • Native cache context support for user.roles to ensure security and performance.
  • Works with both standard and exposed filters.

How it works:

Once enabled, every filter in your View will have a new "Visibility: Restrict by Role" section. Simply check the roles you want to allow. If a user does not have one of the selected roles, the filter will be removed from the View entirely during execution.

Supporting organizations: 

Project information

Releases