mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +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:
@@ -1270,7 +1270,7 @@ function handle_message_list_actions(&$address_list, &$error, $remove_u, $remove
|
||||
// Only check if not a moderator or admin, since they are allowed to override this user setting
|
||||
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
|
||||
{
|
||||
$banned_user_list = phpbb_get_banned_user_ids(array_keys($address_list['u']));
|
||||
$banned_user_list = phpbb_get_banned_user_ids(array_keys($address_list['u']), false);
|
||||
|
||||
if (!empty($banned_user_list))
|
||||
{
|
||||
|
Reference in New Issue
Block a user