You are here

function node_convert_check_access in Node Convert 7

Same name and namespace in other branches
  1. 6 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
Implements hook_menu().

File

./node_convert.module, line 315

Code

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