You are here

function node_registration_register_other_access in Node registration 7

Access callback to check if current user can register other user.

1 string reference to 'node_registration_register_other_access'
node_registration_menu in ./node_registration.module
Implements hook_menu().

File

./node_registration.module, line 482

Code

function node_registration_register_other_access($node, $account) {

  // Account must not already be registered.
  if (_node_registration_user_registered($node, $account)) {
    return FALSE;
  }

  // Acting user must have permissions.
  return node_registration_node_access($node, 'register others');
}