Needs review
Project:
Nodeaccess
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2025 at 06:27 UTC
Updated:
19 Nov 2025 at 10:33 UTC
Jump to comment: Most recent
The nodeaccess module has a validation bug when individual grant operations are disabled:
1. I disabled "View" permissions in nodeaccess settings
2. Form Behavior: When view permissions are disabled, the grants form doesn't include the grant_view checkbox
3. Validation Bug: The validation code still tries to access $grant['grant_view'] without checking if the key exists
4. Error: This causes the "Undefined array key 'grant_view'" warning
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
realityloop commentedComment #4
d.fisher commentedThis looks pretty straightforward to me and makes sense. Can we get one more +1 for RTBC?