mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/8323] Do not allow sending PMs to Inactive users
PHPBB3-8323
This commit is contained in:
parent
6f4538c676
commit
0f4956b280
3 changed files with 3 additions and 3 deletions
|
@ -1194,7 +1194,7 @@ function handle_message_list_actions(&$address_list, &$error, $remove_u, $remove
|
||||||
if (sizeof($usernames))
|
if (sizeof($usernames))
|
||||||
{
|
{
|
||||||
$user_id_ary = array();
|
$user_id_ary = array();
|
||||||
user_get_id_name($user_id_ary, $usernames, array(USER_NORMAL, USER_FOUNDER, USER_INACTIVE));
|
user_get_id_name($user_id_ary, $usernames, array(USER_NORMAL, USER_FOUNDER));
|
||||||
|
|
||||||
// If there are users not existing, we will at least print a notice...
|
// If there are users not existing, we will at least print a notice...
|
||||||
if (!sizeof($user_id_ary))
|
if (!sizeof($user_id_ary))
|
||||||
|
|
|
@ -1696,7 +1696,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
||||||
}
|
}
|
||||||
|
|
||||||
// Can this user receive a Private Message?
|
// 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
|
// Dump it out to the template
|
||||||
return array(
|
return array(
|
||||||
|
|
|
@ -1497,7 +1497,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
)));
|
)));
|
||||||
|
|
||||||
// Can this user receive a Private Message?
|
// Can this user receive a Private Message?
|
||||||
$can_receive_pm = ($user_cache[$poster_id]['user_type'] <> USER_IGNORE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($user_cache[$poster_id]['allow_pm'] && in_array($poster_id, $can_receive_pm_list) && !in_array($poster_id, $banned_users))) ? true : false;
|
$can_receive_pm = ($user_cache[$poster_id]['user_type'] <> USER_IGNORE && $user_cache[$poster_id]['user_type'] <> USER_INACTIVE && (($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || ($user_cache[$poster_id]['allow_pm'] && in_array($poster_id, $can_receive_pm_list) && !in_array($poster_id, $banned_users))) ? true : false;
|
||||||
|
|
||||||
//
|
//
|
||||||
$postrow = array(
|
$postrow = array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue