This Views Published or Roles module provides two filters.
Published or has role
Published or has role allows you to filter by published or by a role. In a perfect world you can add the Bypass content access control permission to a role and use the Published or admin filter to allow a role to view unpublished nodes. Problem is that there are cases that you don't want a role to permission to edit all nodes.
In my scenario I have the View Unpublished Module installed and I want a certain role to only be able to view unpublished nodes for one node type. This filter allows me to select that role to view unpublished.
Current user has roles
Current user has roles allows you to filter by the current user's (logged in user's) role. In most cases you will be okay using the Content: Author contextual filter but it requires a relationship to User from the author field. In some cases you need to look up current users roles without the relation.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Access control, Content display, Content editing experience
290 sites report using this module
- Created by albertski on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 11 compatibility and added automated test
Development version: 8.x-1.x-dev updated 16 Oct 2025 at 08:17 UTC





