Index: openid_server.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openid/Attic/openid_server.module,v
retrieving revision 1.1.2.7
diff -u -p -r1.1.2.7 openid_server.module
--- openid_server.module	19 Feb 2007 03:08:26 -0000	1.1.2.7
+++ openid_server.module	21 Aug 2007 18:10:18 -0000
@@ -96,15 +96,19 @@ function openid_server_settings() {
 function openid_server_user($op, &$edit, &$account, $category = NULL) {
   switch ($op) {
     case 'view':
+      global $user;
       if (variable_get('openid_delegate_enabled', 0)) {
         drupal_add_link(array('rel' => 'openid.delegate', 'href' => ($account->openid_delegate ? $account->openid_delegate : url('user/' . $account->uid . '/xrds', NULL, NULL, TRUE))));
       }
-      $items[] = array(
-          'title' => t('OpenID'),
-          'value' => t('You may login to other OpenID enabled sites using %url', array('%url' => theme('placeholder', url('user/' . $account->uid, NULL, NULL, TRUE))))
-          );
-                                   
-      return array('' => $items);
+      // Only show this link if the user is on their own profile page
+      if ($user->uid == $account->uid) {
+        $items[] = array(
+            'title' => t('OpenID'),
+            'value' => t('You may login to other OpenID enabled sites using %url', array('%url' => theme('placeholder', url('user/' . $account->uid, NULL, NULL, TRUE))))
+            );
+        return array('' => $items);
+      }
+
       break;
     case 'form':
       if ($category == 'account') {
