You are here

function views_gantt_update_access in Views Gantt 7.2

Access callback for task/project updating.

1 call to views_gantt_update_access()
views_gantt_update in ./views_gantt.module
Callback for task/project update when we change it in Gantt chart.

File

./views_gantt.module, line 192
Module file for Views Gantt

Code

function views_gantt_update_access($node, $account = NULL) {
  if (empty($account)) {
    $account = $GLOBALS['user'];
  }

  // Check access to update node by default
  $access = node_access('update', $node, $account);

  // Allow other modules to add another access rules.
  drupal_alter('views_gantt_update_access', $access, $node, $account);
  return $access;
}