aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorNathan <exreaction@phpbb.com>2012-07-10 09:58:10 -0500
committerNathan <exreaction@phpbb.com>2012-07-10 12:34:40 -0500
commit362ba43f18c07c70855e72ebfaea222e04af1183 (patch)
treea18462f3194d687e7e13c42b90d2af8daff0cd8d /phpBB/memberlist.php
parent0f4956b280468e8890b1c84df41d7bb1eb2447c5 (diff)
downloadforums-362ba43f18c07c70855e72ebfaea222e04af1183.tar
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.gz
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.bz2
forums-362ba43f18c07c70855e72ebfaea222e04af1183.tar.xz
forums-362ba43f18c07c70855e72ebfaea222e04af1183.zip
[ticket/8323] Allow sending PMs to temporarily banned users
Added an argument to the phpbb_get_banned_user_ids() function to allow specifying a banned end time (default true for current functionality, false for only permanent bans, timestamp to find banned until a specified time) PHPBB3-8323
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 3e6b0a453f..c76d242df4 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 && $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;
+ $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, false))))) ? true : false;
// Dump it out to the template
return array(