--- user.module 2006-02-07 11:44:26.000000000 +0100 +++ user.module-fj 2006-02-09 20:21:20.000000000 +0100 @@ -611,7 +611,7 @@ if (isset($picture)) { $alt = t('%user\'s picture', array('%user' => $account->name ? $account->name : variable_get('anonymous', 'Anonymous'))); $picture = theme('image', $picture, $alt, $alt, '', false); - if (!empty($account->uid)) { + if (!empty($account->uid) && user_access('access user profiles')) { $picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE); }