13a14,18 > function i18n_perm() { > return array('translate own nodes','translate any node'); > } > > 115c120 < 'access' => user_access('administer nodes'), --- > 'access' => user_access('translate own nodes'), 128c133 < $access = user_access('administer nodes'); --- > $access = user_access('translate own nodes'); 131,135c136,140 < 'path' => 'node/'. arg(1) .'/translation', < 'title' => t('translation'), < 'callback' => 'i18n_node_translation', < 'access' => $access, < 'type' => $type); --- > 'path' => 'node/'. arg(1) .'/translation', > 'title' => t('translation'), > 'callback' => 'i18n_node_translation', > 'access' => $access, > 'type' => $type); 337c342,351 < return node_add($type); --- > > global $user; > $node=node_load(array('nid' => $nid)); > if (($user->uid == $node->uid) || user_access('translate any node')){ > return node_add($type); > } else { > return "Solo puedes traducir tus propias publicaciones"; > } > > 350a365 >