Code: Select all
if (!empty($row['user_allow_viewemail']) || $auth->acl_get('a_email'))
{
$user_cache[$poster_id]['email'] = ($config['board_email_form'] && $config['email_enable']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=email&u=$poster_id") : (($config['board_hide_emails'] && !$auth->acl_get('a_email')) ? '' : 'mailto:' . $row['user_email']);
}
Code: Select all
if (!empty($row['user_allow_viewemail']) || $auth->acl_get('a_email'))
Code: Select all
if ($user->data['user_id'] != ANONYMOUS && (!empty($row['user_allow_viewemail']) || $auth->acl_get('a_email')))
Code: Select all
if ((!empty($row['user_allow_viewemail']) && $auth->acl_get('u_sendemail')) || $auth->acl_get('a_email'))
It works great. Thanks a lot!!RMcGirr83 wrote:change it to this
which will then check to see if the user (any user) has the permission set to send emails.Code: Select all
if ((!empty($row['user_allow_viewemail']) && $auth->acl_get('u_sendemail')) || $auth->acl_get('a_email'))
Code: Select all
if (!empty($data['user_allow_viewemail']) || $auth->acl_get('a_user'))
Code: Select all
if ((!empty($data['user_allow_viewemail']) && $auth->acl_get('u_sendemail')) || $auth->acl_get('a_user'))