Check view tests for access on nodes and generally rework the tests

Created on 13 April 2023, over 1 year ago
Updated 10 May 2023, over 1 year ago

Problem/Motivation

Through development on https://www.drupal.org/project/entity_access_by_reference_field , we found out, that:

  1. Not having the "View published content" permission, will deny any access to a node, no matter the underlying referenced role field
  2. Accessing any node view mode as an admin will lead to the current access operation being "view all revisions", this is because hook_entity_access() will automatically always allow user 1 aka the admin.

This leads to uncertainty on how the access "view" tests for a node actually functions. Since we originally couldn't properly test the access and had to check it with helper methods, we should definitely check the node tests once again.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.71.5 2024