diff options
author | Nathan <exreaction@phpbb.com> | 2012-07-04 20:52:07 -0500 |
---|---|---|
committer | Nathan <exreaction@phpbb.com> | 2012-07-10 12:34:39 -0500 |
commit | 0f4956b280468e8890b1c84df41d7bb1eb2447c5 (patch) | |
tree | 21cc0c371ded170180c1c2e63509828fa770fa71 /phpBB/memberlist.php | |
parent | 6f4538c676ebd3b6e299a606a04f672698ebc487 (diff) | |
download | forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.gz forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.bz2 forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.tar.xz forums-0f4956b280468e8890b1c84df41d7bb1eb2447c5.zip |
[ticket/8323] Do not allow sending PMs to Inactive users
PHPBB3-8323
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 8e2ce4d818..3e6b0a453f 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1696,7 +1696,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f } // Can this user receive a Private Message? - $can_receive_pm = ($data['user_type'] <> USER_IGNORE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($data['user_allow_pm'] && sizeof($auth->acl_get_list($user_id, 'u_readpm')) && !sizeof(phpbb_get_banned_user_ids($user_id))))) ? true : false; + $can_receive_pm = ($data['user_type'] <> USER_IGNORE && $data['user_type'] <> USER_INACTIVE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($data['user_allow_pm'] && sizeof($auth->acl_get_list($user_id, 'u_readpm')) && !sizeof(phpbb_get_banned_user_ids($user_id))))) ? true : false; // Dump it out to the template return array( |