mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[ticket/11474] Clarify comment with "global" and forum_id = 0
Forum ID 0 in permission checks, checks the global moderator permission. PHPBB3-11405 PHPBB3-11474
This commit is contained in:
parent
1af89968dd
commit
d8a63047aa
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class phpbb_notification_type_post_in_queue extends phpbb_notification_type_post
|
||||||
'ignore_users' => array(),
|
'ignore_users' => array(),
|
||||||
), $options);
|
), $options);
|
||||||
|
|
||||||
// 0 is for global
|
// 0 is for global moderator permissions
|
||||||
$auth_approve = $this->auth->acl_get_list(false, $this->permission, array($post['forum_id'], 0));
|
$auth_approve = $this->auth->acl_get_list(false, $this->permission, array($post['forum_id'], 0));
|
||||||
|
|
||||||
if (empty($auth_approve))
|
if (empty($auth_approve))
|
||||||
|
|
|
@ -82,7 +82,7 @@ class phpbb_notification_type_topic_in_queue extends phpbb_notification_type_top
|
||||||
'ignore_users' => array(),
|
'ignore_users' => array(),
|
||||||
), $options);
|
), $options);
|
||||||
|
|
||||||
// 0 is for global
|
// 0 is for global moderator permissions
|
||||||
$auth_approve = $this->auth->acl_get_list(false, 'm_approve', array($topic['forum_id'], 0));
|
$auth_approve = $this->auth->acl_get_list(false, 'm_approve', array($topic['forum_id'], 0));
|
||||||
|
|
||||||
if (empty($auth_approve))
|
if (empty($auth_approve))
|
||||||
|
|
Loading…
Add table
Reference in a new issue