null in nodeaccess_node_access_records() & Undefined array key NodeAccessHelper

Created on 7 February 2024, 5 months ago
Updated 23 February 2024, 4 months ago

We were encountering 2 issues when updating nodes and adding users to nodes.

Trying to access array offset on null in nodeaccess_node_access_records() (line 81 of modules/contrib/nodeaccess/nodeaccess.module).

Warning: Undefined array key "authenticated" in Drupal\nodeaccess\NodeAccessHelper->Drupal\nodeaccess\{closure}() (line 150 of modules/contrib/nodeaccess/src/NodeAccessHelper.php).

The attached patch resolves them both.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States glynster

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024