You are here

function gdpr_task_access in General Data Protection Regulation 7

Access callback for task entities.

1 string reference to 'gdpr_task_access'
gdpr_tasks_entity_info in modules/gdpr_tasks/gdpr_tasks.module
Implements hook_entity_info().

File

modules/gdpr_tasks/gdpr_tasks.module, line 332
Module file for the GDPR Tasks module.

Code

function gdpr_task_access($op, $task = NULL, $account = NULL) {

  // @todo Support other operations.
  if (user_access('administer task entities', $account)) {
    return TRUE;
  }
  if (user_access('process gdpr tasks', $account)) {
    return TRUE;
  }
}