You are here

function gdpr_tasks_user_tasks_access in General Data Protection Regulation 7

Access callback for user task permission.

2 string references to 'gdpr_tasks_user_tasks_access'
gdpr_tasks_menu in modules/gdpr_tasks/gdpr_tasks.module
Implements hook_menu().
gdpr_tasks_menu_alter in modules/gdpr_tasks/gdpr_tasks.module
Implements hook_menu_alter().

File

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

Code

function gdpr_tasks_user_tasks_access($op, $account) {
  global $user;
  $own = $account == $user->uid ? 'own ' : '';
  $permission = "{$op} {$own}gdpr tasks";
  return user_access($permission);
}