Index: l10n_community/export.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/export.inc,v
retrieving revision 1.1.2.15.2.24.2.4
diff -u -p -r1.1.2.15.2.24.2.4 export.inc
--- l10n_community/export.inc	10 Mar 2010 12:26:43 -0000	1.1.2.15.2.24.2.4
+++ l10n_community/export.inc	17 Mar 2010 13:30:01 -0000
@@ -10,6 +10,11 @@
  * User interface for the translation export screen.
  */
 function l10n_community_export_page($uri = NULL, $langcode = NULL) {
+  if (!user_access('export gettext templates and translations')) {
+    // Access check done late to let og_user_roles fill in permissions.
+    return drupal_access_denied();
+  }
+  
   $breadcrumb = array(
     l(t('Home'), NULL),
     l(t('Translate'), 'translate'),
Index: l10n_community/import.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/import.inc,v
retrieving revision 1.1.2.5.2.18.2.3
diff -u -p -r1.1.2.5.2.18.2.3 import.inc
--- l10n_community/import.inc	10 Mar 2010 12:26:43 -0000	1.1.2.5.2.18.2.3
+++ l10n_community/import.inc	17 Mar 2010 13:30:01 -0000
@@ -10,6 +10,11 @@
  * User interface for the translation import screen.
  */
 function l10n_community_import_page($langcode) {
+  if (!user_access('import gettext files')) {
+    // Access check done late to let og_user_roles fill in permissions.
+    return drupal_access_denied();
+  }
+
   $language = l10n_community_get_language($langcode);
   drupal_set_title(t('Import to @language', array('@language' => $language->name)));
   // Add missing breadcrumb.
Index: l10n_community/l10n_community.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.66.2.9
diff -u -p -r1.1.2.23.2.66.2.9 l10n_community.module
--- l10n_community/l10n_community.module	15 Mar 2010 08:57:25 -0000	1.1.2.23.2.66.2.9
+++ l10n_community/l10n_community.module	17 Mar 2010 13:30:01 -0000
@@ -261,7 +261,7 @@ function l10n_community_menu() {
     'page arguments' => array(2),
     'file' => 'import.inc',
     'access callback' => 'user_access',
-    'access arguments' => array('import gettext files'),
+    'access arguments' => array('browse translations'),
     'type' => MENU_LOCAL_TASK,
     'weight' => -5,
   );
@@ -271,7 +271,7 @@ function l10n_community_menu() {
     'page arguments' => array(NULL, 2),
     'file' => 'export.inc',
     'access callback' => 'user_access',
-    'access arguments' => array('export gettext templates and translations'),
+    'access arguments' => array('browse translations'),
     'type' => MENU_LOCAL_TASK,
     'weight' => 0,
   );
