Problem/Motivation
The following line:
$result = $result->andIf(AccessResult::forbidden('The entity is locked'));
changes the max age that was previously set to 0 to -1, causing the access check to be cached while it shouldn't.
Issue fork content_lock-3556448
Show commands
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
dieterholvoet commentedComment #4
dieterholvoet commentedComment #6
alexpottI've added test coverage.
Comment #8
alexpott