You are here

function diff_node_revision_access in Diff 6.2

Same name and namespace in other branches
  1. 7.3 diff.module \diff_node_revision_access()
  2. 7.2 diff.module \diff_node_revision_access()

Access callback for the node revisions page.

1 string reference to 'diff_node_revision_access'
diff_menu in ./diff.module
Implementation of hook_menu().

File

./diff.module, line 105
Provides functionality to show a diff between two node revisions.

Code

function diff_node_revision_access($node, $op = 'view') {
  $may_revision_this_type = variable_get('enable_revisions_page_' . $node->type, TRUE) || user_access('administer nodes');
  return $may_revision_this_type && _node_revision_access($node, $op);
}