Views Filter Role Access
No security coverage
Views ecosystem
This module allows administrators to control which filters in a View are visible to specific user roles. By default, all filters are visible to all users, but with this module, you can restrict certain filters to only appear for users with designated roles. This helps create more tailored and secure filter experiences for different user groups.
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.