Contact icon/link is displayed only if the user has checked 'Personal contact form' (and user/author is not anonymous and user!=author).

But if a logged in user has 'administer users' permission, the user can access the personal contact form for the no anonymous author and send a message. So I think the icon/link should be displayed when this occur.

So in contact.author-pane.inc this function

if ((!empty($account->contact)) && ($account_id != $user->uid) && ($user->uid != 0) && ($account_id != 0)) {

should be like (changed $user->uid != 0 to user_is_logged_in())

if (user_is_logged_in() && $account_id != 0 && $account_id != $user->uid && (!empty($account->contact) || user_access('administer users'))) {

This is also in 6.x-1.x version of author pane.

Note: even if a anonymous user has the permission 'administer users', the anonymous user can not access the contact form because of core, as has been mention in some other issue.

Comments

michelle’s picture

Status: Active » Fixed

That sounds reasonable. Committed, thanks.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.