You are here

function hosting_task_access in Hostmaster (Aegir) 6

Implementation of hook_access()

File

modules/hosting/task/hosting_task.module, line 244
Web server node type is defined here.

Code

function hosting_task_access($op, $node, $account) {
  if (hosting_feature('client')) {

    // we rely on hosting_node_grants() instead of global configuration
    return NULL;
  }
  if (user_access('administer tasks', $account)) {
    return TRUE;
  }
}