Limit access and editing menu by user I have created a new menu and I'm trying to limit the access to a particular user to edit instead of role with the following code but it's not working, I still can't see the menu and edit the menus items by logging in with the relevant user login (user id 3 in this case). Wondering what's the proper way of doing.

/**
 * Implements hook_menu().
 */

function menu_access_by_uid_menu(){
  $items = array();
  $items['admin/structure/menu/manage/new-menu'] = array(
    'title' =&gt; 'New Menu',  
    'access callback' =&gt; 'menu_access_by_uid_validate',       
  ); 

  return $items;
}


function menu_access_by_uid_validate() {

 global $user;

 if (user_is_logged_in() &amp;&amp; ($user-&gt;uid == 1 || $user-&gt;uid == 3)){
   return TRUE;
 }

 return FALSE;
}
There is a nice module to handle visibility of menu items. You can use the module or see code in side the module. 

May be It will help you. I am not sure :P

https://www.drupal.org/project/menu_item_visibility