You are here

function gdpr_tasks_permission in General Data Protection Regulation 7

Implements hook_permission().

File

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

Code

function gdpr_tasks_permission() {

  // @todo IMPORTANT!! Permission review.
  $perms = array(
    'administer task entities' => array(
      'title' => t('Administer task entities'),
      'restrict access' => TRUE,
    ),
    'administer task type entities' => array(
      'title' => t('Administer task entities'),
      'restrict access' => TRUE,
    ),
    'administer task emails' => array(
      'title' => t('Administer task emails'),
      'restrict access' => TRUE,
    ),
    'process gdpr tasks' => array(
      'title' => t('Process GDPR tasks'),
      'restrict access' => TRUE,
    ),
    'view gdpr tasks' => array(
      'title' => t('View GDPR tasks'),
    ),
    'view own gdpr tasks' => array(
      'title' => t('View you own GDPR tasks'),
    ),
    'edit gdpr tasks' => array(
      'title' => t('Edit GDPR tasks'),
    ),
    'request gdpr tasks' => array(
      'title' => t('Request new GDPR tasks for themselves'),
    ),
    'request any gdpr tasks' => array(
      'title' => t('Request new GDPR tasks for anyone'),
    ),
  );
  return $perms;
}