You are here

function dna_node_access in Devel 5

This wrapper around the node_access method allows us to pass in an account.

1 call to dna_node_access()
devel_node_access_block in ./devel_node_access.module

File

./devel_node_access.module, line 524
This module gives developers feedback as to what their node_access table contains, and which nodes are protected or visible to the public.

Code

function dna_node_access($op, $node, $account) {
  global $user;
  session_save_session(FALSE);
  $user_save = $user;
  $user = $account;
  $result = node_access($op, $node);
  $user = $user_save;
  session_save_session(TRUE);
  return $result;
}