Setting 'Grant all node permissions' does not allow access to Grant tab on any node types

Created on 18 March 2025, 19 days ago

I ran into this issue on a Drupal 10.4.4 site. I verified the issue on a clean Drupal 10 install with nodeaccess as the only contrib module installed.

Problem/Motivation

Setting the 'Grant all node permissions' permission should show the Grants tab on all node types. It does not show on any node types for users with that permission set.

It does display if the individual per-node permissions are set ('Article: grant node permissions', for instance).

Steps to reproduce

  • Ensure nodeaccess is configured to display the Grants tab on at least one content type (/admin/config/people/nodeaccess)
  • Create a user role that has 'Grant all node permissions' permission.
  • Login with a user as that role and observe that the Grants tab does not display on any nodes

Proposed resolution

Add a check for if the user has the grant node permissions permission when determining if access to the grants form should be allowed.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024