Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

View access per node

1,573 sites Security covered Drupal 9–11
View on drupal.org

This module controls who can view individual content items on a per-node basis. Administrators can configure which roles have viewing access for specific content types, and then manage these permissions directly on each node.

Introduction

View Access Per Node (vapn) is a very simple access control module with
relation to viewing content on a per-node basis, the initial idea is a porting of the D7 module "View Permissions Per Node" https://www.drupal.org/project/vppn but more features/integrations are planned for this project.

This module only deals with viewing nodes, it does not affect other ops (eg. create/update/delete).

There are a lot of access control modules, many of them are compared here
https://www.drupal.org/node/270000

This module only uses hook_node_access so it should play fairly well with other access control modules.

Installation

- Enable the module (https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod...) as usual,
- Set permissions for users that can use and administer vapn.

Configuration

- Navigate to admin/config/vapn/vapnconfig and select the content types,
- Create or edit a node with one of the types selected above,
- There will be a new vertical tab named "View Access per node",
- Select the roles that will have view access to this node.

Notes

- Roles with the bypass node access permission will not be listed,
- Selecting no roles will skip using this module for access control,
- Selecting even one role will enable this module for access control, and deny
access to any users without one of the selected roles.

Version 3
- It now switched to use entity/field api to handle the permissions https://www.drupal.org/project/vapn/issues/3394494.
- In previous version, if you don't specify a role in your node, by default it will show it for all users. In version 3, it will now only show it to administrator.

Depends on

Dependencies of the latest stable release

  • node 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
Slowing

Releases

Version Type Core Release date
3.0.0 Stable 9–11 Jun 2, 2025
3.0.0-alpha3 Pre-release 9–11 Nov 28, 2024