You are here

function tmgmt_local_rules_component_access in Translation Management Tool 7

Same name and namespace in other branches
  1. 8 translators/tmgmt_local/tmgmt_local.module \tmgmt_local_rules_component_access()

Access callback to translation tasks rules component actions.

1 string reference to 'tmgmt_local_rules_component_access'
tmgmt_local_rules_action_info_alter in translators/tmgmt_local/tmgmt_local.module
Implements hook_rules_action_info_alter().

File

translators/tmgmt_local/tmgmt_local.module, line 895
Main module file for the local translation module.

Code

function tmgmt_local_rules_component_access($type, $name) {
  switch ($name) {
    case 'component_rules_tmgmt_local_task_assign_to_me':
      return user_access('provide translation services');
    case 'component_rules_tmgmt_local_task_assign':
      return user_access('administer translation tasks');
  }
}