Commit e75de53d authored by akalam's avatar akalam

Prevent revisions tab to appear for node authlinks

parent a4379454
......@@ -18,7 +18,7 @@ class NodeRevisionAccessCheck extends NodeRevisionAccessCheckOriginal {
* {@inheritdoc}
*/
public function checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') {
if (node_authlink_node_is_enabled($node) && node_authlink_check_authlink($node, $op, $account)) {
if (!$node->isLatestRevision() && 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