aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2017-10-03 15:05:21 +0200
committerJakub Senko <jakubsenko@gmail.com>2017-10-09 16:42:48 +0200
commit4d333e7f706530839b784bb3ef99cd3d6d247593 (patch)
tree2a1d570bdab436b3d50b1f2c373025bbaceeb7a7 /phpBB/phpbb
parent93621aa1844ab48d9bae068d9872d2c49ae86de4 (diff)
downloadforums-4d333e7f706530839b784bb3ef99cd3d6d247593.tar
forums-4d333e7f706530839b784bb3ef99cd3d6d247593.tar.gz
forums-4d333e7f706530839b784bb3ef99cd3d6d247593.tar.bz2
forums-4d333e7f706530839b784bb3ef99cd3d6d247593.tar.xz
forums-4d333e7f706530839b784bb3ef99cd3d6d247593.zip
[ticket/13150] Add core.phpbb_log_get_topic_auth_sql_after
PHPBB3-13150
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 8f199cd931..9b93c6a2db 100644
--- a/phpBB/phpbb/log/log.php
+++ b/phpBB/phpbb/log/log.php
@@ -928,6 +928,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'];