Index: uc_order.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/ubercart/uc_order/uc_order.module,v
retrieving revision 1.11.2.4
diff -u -p -r1.11.2.4 uc_order.module
--- uc_order.module	8 Feb 2008 22:22:39 -0000	1.11.2.4
+++ uc_order.module	11 Feb 2008 18:00:32 -0000
@@ -423,7 +423,7 @@ function uc_order_user($op, &$edit, &$ac
   global $user;
   switch ($op){
     case 'view':
-      if ($user->uid && ($user->uid == $account->uid || user_access('view all orders'))) {
+      if ($user->uid && user_access('create orders', $account) && ($user->uid == $account->uid || user_access('view all orders'))) {
         $items['orders'] = array(
           'value' => l(t('Click here to view your order history.'), 'user/'. $account->uid .'/orders'),
           'class' => 'member',
