Permissions not working with Tabs menus? I have Menus with Tab structure Working from my custom module. But When I built permissions for each Tab It does not work according to assigned user roles in permissions, also it just made those url's not accessible. Please suggest what I am doing wrong, Thanks!

function my_module_permission() {
  $arr = array();
  $arr['access one_type_titles'] = array(
    'title' =&gt; t('Access First Type Titles'),
    'description' =&gt; t('Allow users to First Type Titles page.')
  );

  $arr['access second_type_titles'] = array(
    'title' =&gt; t('Access Second type Title page'),
    'description' =&gt; t('Allow users to access Second type Title page.')
  );

  return $arr;
}


function my_module_menu() {


  $items['type'] = array(

    'description' =&gt; t('Page for translation'),
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('custom_list'),
    'access arguments' =&gt; array('access one_type_titles content'),


  );

  $items['type/fr'] = array(
    'title' =&gt; t('French Links'),
    'type' =&gt; MENU_LOCAL_TASK,
    'weight' =&gt; 1,
    'page arguments' =&gt; array('custom_list'),
    'page callback' =&gt; 'drupal_get_form',
    'access arguments' =&gt; array('access one_type_titles content'),
  );

  $items['type/en'] = array(
    'title' =&gt; t('English Links'),
    'type' =&gt; MENU_LOCAL_TASK,
    'weight' =&gt; 2,
    'page arguments' =&gt; array('custom_list'),
    'page callback' =&gt; 'drupal_get_form',
    'access arguments' =&gt; array('access second_type_titles content'),



  );

  return $items;
}


Using 'access callback' =&gt; can_the_user_see_this_item, and then coding access according to user role make it works but not with above method. 

function can_the_user_see_this_item(){
 if (condition....) ) {
    return TRUE;
  }else{
    return FALSE;
  }
}
Try to remove 'content' word from 'access arguments' in hook_menu, because you custom permissions don't contain it. Clear cache.


'access arguments' => array('access one_type_titles'),