mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/8323] Allow temporarily banned users to receive PMs, but not a notification
PHPBB3-8323
This commit is contained in:
parent
33852e6251
commit
08bdebb0b5
1 changed files with 2 additions and 2 deletions
|
@ -1828,12 +1828,12 @@ function pm_notification($mode, $author, $recipients, $subject, $message, $msg_i
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get permanently banned users (do not notify these users)
|
// Get currently banned users (do not notify these users)
|
||||||
if (!function_exists('phpbb_get_banned_user_ids'))
|
if (!function_exists('phpbb_get_banned_user_ids'))
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
||||||
}
|
}
|
||||||
$banned_users = phpbb_get_banned_user_ids(array_keys($recipients), false);
|
$banned_users = phpbb_get_banned_user_ids(array_keys($recipients));
|
||||||
$recipients = array_diff(array_keys($recipients), $banned_users);
|
$recipients = array_diff(array_keys($recipients), $banned_users);
|
||||||
|
|
||||||
// Get the list of users who can read PMs (only notify those who can read PMs)
|
// Get the list of users who can read PMs (only notify those who can read PMs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue