You are here

function hosting_task_access in Hosting 6.2

Same name and namespace in other branches
  1. 5 task/hosting_task.module \hosting_task_access()

Implementation of hook_access()

File

task/hosting_task.module, line 262
Web server node type is defined here.

Code

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

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