How to alter commerce order view access?
You should be using hook_commerce_entity_access_condition_ENTITY_TYPE_alter() for commerce orders. 

You receive the following parameters:


$conditions: The OR conditions group used for the view access query.
$context: An array of contextual information including:


account: the account whose access to view the entity is being checked
entity_type: the type of entity in the query 
base_table: the name of the table for the entity type



So it becomes: 

hook_commerce_entity_access_condition_commerce_order_alter(&amp;$conditions, $context) {
  // If we are not allowed to view the order, leave.
  if (!user_access('some_permission', $context['account'])) {
    return;
  }

  $orders = array(99);

  // add a condition
  $conditions-&gt;condition(db_and()
    -&gt;condition($context['base_table'] . '.order_id', $orders, 'IN')
  );
}