You are here

function translation_access in Internationalization 5.3

Same name and namespace in other branches
  1. 5.2 translation/translation.module \translation_access()

Implementation of hook_access().

3 calls to translation_access()
translation_form_alter in translation/translation.module
Implementation of hook_form_alter().
translation_menu in translation/translation.module
Implementation of hook_menu().
translation_node_prepare in translation/translation.module
Prepare node for translation

File

translation/translation.module, line 124

Code

function translation_access($node) {
  global $user;
  return user_access('translate nodes') || $node->uid == $user->uid && user_access('translate own nodes');
}