--- mp_products.module.org 2008-11-16 17:47:51.000000000 +0000 +++ mp_products.module 2009-03-12 00:35:51.000000000 +0000 @@ -36,21 +36,26 @@ */ function mp_products_user($op, &$edit, &$account, $category = NULL) { global $user; + + if ($user->uid > 1 && $user->uid <> $account->uid ) { + $account = $user; + } + switch ($op) { case 'view': - if (user_access('view own products')) { + if (user_access('view own products', $account)) { $items['products'] = array( 'value' => l(t('Click here to view your products.'), 'user/'. $account->uid .'/selling/'), 'class' => 'member', ); } - if (module_exists(mp_orders) && user_access('fulfill own orders')) { + if (module_exists(mp_orders) && user_access('fulfill own orders', $account)) { $items['fulfill'] = array( 'value' => l(t('Click here to fulfill your orders.'), 'user/'. $account->uid .'/selling/fulfill'), 'class' => 'member', ); } - if (module_exists(mp_reports) && user_access('view own reports')) { + if (module_exists(mp_reports) && user_access('view own reports', $account)) { $items['reports'] = array( 'value' => l(t('Click here to view your sales reports.'), 'user/'. $account->uid .'/selling/reports'), 'class' => 'member',