--- mp_products.module.old	2009-05-09 16:35:44.000000000 -0300
+++ mp_products.module	2009-06-11 17:30:32.000000000 -0300
@@ -38,24 +38,26 @@
   global $user;
   switch ($op) {
     case 'view':
-      $link = '';
-      if (user_access('view own products')) {
-        $link .= l(t('Click here to view your products.'), 'user/'. $account->uid .'/selling/');
-      }
-      if (module_exists(mp_orders) && user_access('fulfill own orders')) {
-         $link .= '<br />'. l(t('Click here to fulfill your orders.'), 'user/'. $account->uid .'/selling/fulfill');
-      }
-      if (module_exists(mp_reports) && user_access('view own reports')) {
-         $link .= '<br />'. l(t('Click here to view your sales reports.'), 'user/'. $account->uid .'/selling/reports');
-      }
-      $account->content['products'] = array(
-        '#type' => 'user_profile_category',
-        '#title' => t('Selling'),
-        'link' => array(
-          '#value' => $link,
-          '#type' => 'user_profile_item',
-        ),
-     );
+      if($user->uid == $account->uid){
+        $link = '';
+        if (user_access('view own products')) {
+          $link .= l(t('Click here to view your products.'), 'user/'. $account->uid .'/selling/');
+        }
+        if (module_exists(mp_orders) && user_access('fulfill own orders')) {
+           $link .= '<br />'. l(t('Click here to fulfill your orders.'), 'user/'. $account->uid .'/selling/fulfill');
+        }
+        if (module_exists(mp_reports) && user_access('view own reports')) {
+           $link .= '<br />'. l(t('Click here to view your sales reports.'), 'user/'. $account->uid .'/selling/reports');
+        }
+        $account->content['products'] = array(
+          '#type' => 'user_profile_category',
+          '#title' => t('Selling'),
+          'link' => array(
+            '#value' => $link,
+            '#type' => 'user_profile_item',
+          ),
+       );
+     }
     break;
   }
 }
