I have a views page with a menu tab in user profile, I want to hide it for some user roles.<br>
I tried with hook_menu_alter<br>

 function hide_tabs_menu_alter(&$items) {
 	global $user;
 	if (in_array('gerant', array_values($user->roles))) {
 		$items['user/%user/infos']['type'] = MENU_CALLBACK;
 	}
 }

 1. This doesn't hide the tab, but it works for other tabs -created by
 other modules- like user/%user/contact.
 2. I wanted this user still be able to see this tab in other users
 profile.

### To add more information
*(some users sugguested me to use with views permissions instead of hook_menu_alter)*<br>
There are two roles (_gerant_ and _etudiant_). The permission should be _View own info page_ which should be assigned to _etudiant_. _gerant_ should not have it, but it should still be allowed to see user/%user/infos in _etudiant_'s profiles.