1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[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
This commit is contained in:
Nathan
2012-07-10 09:58:10 -05:00
parent 0f4956b280
commit 362ba43f18
5 changed files with 39 additions and 18 deletions

View File

@@ -1321,8 +1321,8 @@ if ($bbcode_bitfield !== '')
$can_receive_pm_list = $auth->acl_get_list(array_keys($user_cache), 'u_readpm');
$can_receive_pm_list = (empty($can_receive_pm_list) || !isset($can_receive_pm_list[0]['u_readpm'])) ? array() : $can_receive_pm_list[0]['u_readpm'];
// Get the list of banned users
$banned_users = phpbb_get_banned_user_ids(array_keys($user_cache));
// Get the list of permanently banned users
$banned_users = phpbb_get_banned_user_ids(array_keys($user_cache), false);
$i_total = sizeof($rowset) - 1;
$prev_post_id = '';