Commit 85ebd510 authored by TuWebO's avatar TuWebO Committed by akalam

Issue #3043182 by TuWebO: NodeRevisionAccessCheck should exclude "Current" and not "Latest"

parent e75de53d
......@@ -18,7 +18,7 @@ class NodeRevisionAccessCheck extends NodeRevisionAccessCheckOriginal {
* {@inheritdoc}
*/
public function checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') {
if (!$node->isLatestRevision() && node_authlink_node_is_enabled($node) && node_authlink_check_authlink($node, $op, $account)) {
if (!$node->isDefaultRevision() && node_authlink_node_is_enabled($node) && node_authlink_check_authlink($node, $op, $account)) {
return AccessResult::allowed();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment