Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2015 at 21:14 UTC
Updated:
20 Mar 2025 at 22:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
geertvd commentedComment #3
geertvd commentedThis is going to fail because I can't figure out how to reset the
$accessproperty inNodeRevisionAccessCheck.Comment #6
dawehnerIf you really want to be evil you can do the following:
Comment #7
geertvd commentedThat fixes it. Not sure if this is to evil for core :)
Comment #8
dawehnerWell yeah another possibility is to reset the service on the container, but well, not sure which approach is actually nicer!
Comment #9
geertvd commentedI would have thought
$this->container->set('access_check.node.revision', NULL);would work also but it doesn't.Am I doing something wrong there?
Comment #10
lokapujyasee https://www.drupal.org/node/1863898. It has tests for D8, so maybe they can be combined.
Comment #11
lokapujyaComment #12
no_angel commentedComment #13
no_angel commentedComment #25
smustgrave commentedNeeds updating for 10.1
With the addition of https://www.drupal.org/project/drupal/issues/2350939 wonder if this should be done differently.
Comment #27
acbramley commentedThis was done in #1863898: Add test coverage for Views revision link handlers
See https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/node/...