Closed (fixed)
Project:
Author Pane
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2011 at 13:42 UTC
Updated:
11 Apr 2011 at 19:11 UTC
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
Comment #1
michelleThat sounds reasonable. Committed, thanks.
Michelle