How to check user has permission special node 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-&gt;access('edit', $account);


But It don't working. So how can check permission of special node?
Just tested this and $node-&gt;access('update'); works for me. I let the optional $account parameter out so that it would check the currently logged in user.

The only difference was that I loaded my node with:

\Drupal\node\Entity\Node::load($nid);


To just use Node::load($nid); Make sure to include:

use Drupal\node\Entity\Node;


at the top of your file.