restrict some url access, based on user roles
You can implement hook_menu_alter in your custom module and can provide function for 'access callback' property of the menu item.

&lt;?php


/**
 * Implements hook_menu_item_alter()
 *
 */
function custom_feature_menu_alter(&amp;$items) {

  $items['admin/structure/types']['access callback'] = 'custom_feature_access_callback';

}

/**
 * Custom access callback
 */

function custom_feature_access_callback($arg) {

  global $user;

  $roles = array_keys($user-&gt;roles);

  //Adding condition for the user roles. You can change 3 to your user role. I have tested this with administrator user role
  if (in_array(3, $roles)) {

    return FALSE;
  }
  else {
    return TRUE;
  }

}