You are here

function node_convert_check_access in Node Convert 6

Same name and namespace in other branches
  1. 7 node_convert.module \node_convert_check_access()

Checks if user can do conversions from this node's type.

Parameters

$node: A node object to be checked.

Return value

TRUE if user can make conversions using this type, FALSE otherwise.

1 string reference to 'node_convert_check_access'
node_convert_menu in ./node_convert.module
Implementation of hook_menu().

File

./node_convert.module, line 928
The node_convert module converts nodes from one type to another.

Code

function node_convert_check_access($node) {
  $access = user_access('administer conversion') || user_access('convert from ' . $node->type) ? TRUE : FALSE;
  return $access;
}