How can I hide menu items based on permissions?
Hi have done it this way:

function mymodule_menu_link_alter(&amp;$item) 
 {
  $item['options']['alter'] = TRUE;                                                                                                                                                      
 } 

function mymodule_translated_menu_link_alter(&amp;$item, $map) 
 {

  if (!empty($item['access'])) {

  if(
   ( $item['link_title']=="MyLinkToHide1" &amp;&amp; !user_access("access link 1") ) ||
   ( $item['link_title']=="MyLinkToHide2" &amp;&amp; !user_access("access link 2") )

   )
   {
            $item['access'] = FALSE;
   }

 }
}