You are here

function _pmtask_tasks_access in Drupal PM (Project Management) 7

Determines whether the task tab of a project is visible.

File

pmtask/pmtask.module, line 660

Code

function _pmtask_tasks_access($node = NULL) {
  if ($node == NULL) {
    return FALSE;
  }
  if ($node->type == 'pmproject' && user_access('Project Management Task: access')) {
    return TRUE;
  }
  return FALSE;
}