You are here

function _devel_node_access_filter_access in Devel 6

1 call to _devel_node_access_filter_access()
_devel_node_access_explain_access in ./devel_node_access.module
Helper function that mimicks node.module's node_access() function.

File

./devel_node_access.module, line 669
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 _devel_node_access_filter_access($format) {
  $format = filter_resolve_format($format);
  if (user_access('administer filters') || $format == variable_get('filter_default_format', 1)) {
    return TRUE;
  }
  else {
    return (bool) _devel_node_access_filter_formats($format);
  }
}