mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-29 18:50:25 +02:00
[ticket/11103] Allow global moderators to receive moderator notifications
PHPBB3-11103
This commit is contained in:
parent
4392054044
commit
397d039ce5
@ -87,13 +87,16 @@ class phpbb_notification_type_post_in_queue extends phpbb_notification_type_post
|
||||
'ignore_users' => array(),
|
||||
), $options);
|
||||
|
||||
$auth_approve = $this->auth->acl_get_list(false, $this->permission, $post['forum_id']);
|
||||
// 0 is for global
|
||||
$auth_approve = $this->auth->acl_get_list(false, $this->permission, array($post['forum_id'], 0));
|
||||
|
||||
if (empty($auth_approve))
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
$auth_approve[$post['forum_id']] = array_unique(array_merge($auth_approve[$post['forum_id']], $auth_approve[0]));
|
||||
|
||||
$notify_users = array();
|
||||
|
||||
$sql = 'SELECT *
|
||||
|
@ -80,13 +80,16 @@ class phpbb_notification_type_topic_in_queue extends phpbb_notification_type_top
|
||||
'ignore_users' => array(),
|
||||
), $options);
|
||||
|
||||
$auth_approve = $this->auth->acl_get_list(false, 'm_approve', $topic['forum_id']);
|
||||
// 0 is for global
|
||||
$auth_approve = $this->auth->acl_get_list(false, 'm_approve', array($topic['forum_id'], 0));
|
||||
|
||||
if (empty($auth_approve))
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
$auth_approve[$topic['forum_id']] = array_unique(array_merge($auth_approve[$topic['forum_id']], $auth_approve[0]));
|
||||
|
||||
$notify_users = array();
|
||||
|
||||
$sql = 'SELECT *
|
||||
|
Loading…
x
Reference in New Issue
Block a user