commit 6b541c067864e2780b8b1316d13ede7eb0c26dba
Author: Alan Burke <alan@cycletraffic.com>
Date:   Tue Apr 19 08:37:20 2011 +0100

    Adding a permission to allow users the ability of opt ot of notifications

diff --git a/modules/contrib-patched/translation_management/icl_core/icl_core.module b/modules/contrib-patched/translation_management/icl_core/icl_core.module
index 12cca2a..420321d 100644
--- a/modules/contrib-patched/translation_management/icl_core/icl_core.module
+++ b/modules/contrib-patched/translation_management/icl_core/icl_core.module
@@ -7,6 +7,7 @@
  */
 
 define ( 'ICL_PERM_ADMINISTER', 'administer icanlocalize' );
+define ( 'ICL_PERM_OPT_NOTIFY', 'opt out from ICL notifications' );
 
 define ( 'ICL_STATUS_INQUEUE', 0 );
 define ( 'ICL_STATUS_REQUESTED', 1 );
@@ -50,7 +51,8 @@ include_once dirname(__FILE__) . '/../icl_content/icl_content.stats.inc';
  */
 function icl_core_perm() {
   return array (
-      ICL_PERM_ADMINISTER);
+      ICL_PERM_ADMINISTER,
+      ICL_PERM_OPT_NOTIFY);
 }
 
 /**
@@ -1693,7 +1695,7 @@ function icl_core_ignore_url_submit($form, &$form_state) {
 function icl_core_user($type, $edit, &$user, $category = NULL) {
   switch ($type) {
     case 'form':
-      if ((user_access('can do translation jobs'))&& $category == 'account') {
+      if ((user_access('can do translation jobs') && user_access(ICL_PERM_OPT_NOTIFY)) && $category == 'account') {
         $form['icl_core'] = array(
           '#type'        => 'fieldset',
           '#title'       => t('Translation Manager settings'),
