Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

View access per node

1,632 sites Security covered
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.

Activity

Total releases
1
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
3.0.0 Stable Jun 2, 2025