Commit 40dd23d0 authored by webchick's avatar webchick

Issue #2062117 by anpolimus, m1r1k: Remove calls to deprecated = ['user'] in...

Issue #2062117 by anpolimus, m1r1k: Remove calls to deprecated   = ['user'] in core/modules/node/lib/Drupal/node/Access/NodeRevisionAccessCheck.php .
parent d8389c2a
......@@ -126,7 +126,7 @@ public function checkAccess(NodeInterface $node, $op = 'view', AccountInterface
}
if (!isset($account)) {
$account = $GLOBALS['user'];
$account = \Drupal::currentUser();
}
// If no language code was provided, default to the node revision's langcode.
......
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