You are here

function nr_owners_node_registration_node_access in Node registration 7

Implements hook_node_registration_node_access().

File

submodules/nr_owners/nr_owners.module, line 44

Code

function nr_owners_node_registration_node_access($node, $op, $account, $reason) {
  if (in_array($op, array(
    'registration settings',
    'administer',
  ))) {
    if (_node_registration_node_type_enabled($node->type) && $account->uid == $node->uid) {
      return TRUE;
    }
  }
}