mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[ticket/8323] Comments
PHPBB3-8323
This commit is contained in:
@@ -1553,12 +1553,21 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
|
||||
// Can this user receive a Private Message?
|
||||
$can_receive_pm = (
|
||||
$user_cache[$poster_id]['user_type'] != USER_IGNORE && // They must be a "normal" user
|
||||
($user_cache[$poster_id]['user_type'] != USER_INACTIVE && $user_cache[$poster_id]['user_inactive_reason'] == INACTIVE_MANUAL) && // They must not be deactivated by the administrator
|
||||
in_array($poster_id, $can_receive_pm_list) && // They must be able to read PMs
|
||||
!in_array($poster_id, $permanently_banned_users) && // They must not be permanently banned
|
||||
(($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || $data['user_allow_pm']) // They must allow users to contact via PM
|
||||
) ? true : false;
|
||||
// They must be a "normal" user
|
||||
$user_cache[$poster_id]['user_type'] != USER_IGNORE &&
|
||||
|
||||
// They must not be deactivated by the administrator
|
||||
($user_cache[$poster_id]['user_type'] != USER_INACTIVE && $user_cache[$poster_id]['user_inactive_reason'] == INACTIVE_MANUAL) &&
|
||||
|
||||
// They must be able to read PMs
|
||||
in_array($poster_id, $can_receive_pm_list) &&
|
||||
|
||||
// They must not be permanently banned
|
||||
!in_array($poster_id, $permanently_banned_users) &&
|
||||
|
||||
// They must allow users to contact via PM
|
||||
(($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) || $data['user_allow_pm'])
|
||||
);
|
||||
|
||||
//
|
||||
$post_row = array(
|
||||
|
Reference in New Issue
Block a user