diff --git a/user/user.module b/user/user.module index f8a4fb8..ca34a97 100644 --- a/user/user.module +++ b/user/user.module @@ -637,7 +637,9 @@ $name = drupal_substr($name, 0, 15) . '...'; } $variables['name'] = check_plain($name); - $variables['profile_access'] = user_access('access user profiles'); + + global $user; + $variables['profile_access'] = user_access('access user profiles') || $account->id() == $user->id(); // Populate link path and attributes if appropriate. if ($variables['uid'] && $variables['profile_access']) {