aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-10-31 16:13:34 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-10-31 16:13:34 +0100
commit131c26449228221f0028711e41ab79191ab2c25a (patch)
treeeceef1f1ba7583e70ba61bec155d9407fdf041e9 /phpBB/phpbb
parent200562548edb3c9733461a55486636b7a420d41e (diff)
parent4d333e7f706530839b784bb3ef99cd3d6d247593 (diff)
downloadforums-131c26449228221f0028711e41ab79191ab2c25a.tar
forums-131c26449228221f0028711e41ab79191ab2c25a.tar.gz
forums-131c26449228221f0028711e41ab79191ab2c25a.tar.bz2
forums-131c26449228221f0028711e41ab79191ab2c25a.tar.xz
forums-131c26449228221f0028711e41ab79191ab2c25a.zip
Merge pull request #4985 from senky/ticket/13150
[ticket/13150] Add core.phpbb_log_get_topic_auth_sql_after
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/log/log.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php
index 5aad7ee326..dcc4cdde51 100644
--- a/phpBB/phpbb/log/log.php
+++ b/phpBB/phpbb/log/log.php
@@ -933,6 +933,20 @@ class log implements \phpbb\log\log_interface
$forum_auth['f_read'][$row['topic_id']] = $row['forum_id'];
}
+ /**
+ * Allow modifying SQL query after topic data is retrieved (inside loop).
+ *
+ * @event core.phpbb_log_get_topic_auth_sql_after
+ * @var array forum_auth Forum permissions
+ * @var array row One row of data from SQL query
+ * @since 3.2.2-RC1
+ */
+ $vars = array(
+ 'forum_auth',
+ 'row',
+ );
+ extract($this->dispatcher->trigger_event('core.phpbb_log_get_topic_auth_sql_after', compact($vars)));
+
if ($this->auth->acl_gets('a_', 'm_', $row['forum_id']))
{
$forum_auth['m_'][$row['topic_id']] = $row['forum_id'];