I following topic https://atendesigngroup.com/blog/custom-permissions-node-access-grants-drupal-8-and-drupal-7 to create custom permissions for node. It's working ok. Example I can edited node 1 with url: example.com/node/1/edit/. I wan't check user have permission edit node by code eg:
node_access('view', $node);
and Drupal 8
$node = Node::load(1);
$account = User::load(1);
$check = $node->access('edit', $account);
But It don't working. So how can check permission of special node?