mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
28df230f8d
1 changed files with 14 additions and 0 deletions
|
@ -933,6 +933,20 @@ class log implements \phpbb\log\log_interface
|
||||||
$forum_auth['f_read'][$row['topic_id']] = $row['forum_id'];
|
$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']))
|
if ($this->auth->acl_gets('a_', 'm_', $row['forum_id']))
|
||||||
{
|
{
|
||||||
$forum_auth['m_'][$row['topic_id']] = $row['forum_id'];
|
$forum_auth['m_'][$row['topic_id']] = $row['forum_id'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue