mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge pull request #4868 from javiexin/ticket/15266
[ticket/15266] Fix events in content_visibility
This commit is contained in:
@@ -538,7 +538,7 @@ if ($forum_data['forum_type'] == FORUM_POST)
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if ($row['topic_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $row['forum_id']))
|
||||
if (!$phpbb_content_visibility->is_visible('topic', $row['forum_id'], $row))
|
||||
{
|
||||
// Do not display announcements that are waiting for approval or soft deleted.
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user