Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Published or Roles

Security covered Under active development 309 sites

Part of the Views ecosystem · 280 projects

This module adds filters to Views to show content based on publication status and user roles. It allows you to filter content that is either published or accessible to specific roles, and also filters content based on the roles assigned to the currently logged-in user.

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.

Drupal 8–11

Ask your assistant about Views Published or Roles

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.4 Stable 8–11 Oct 16, 2025
8.x-1.3 Stable 8–11 Nov 22, 2024