mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #4868 from javiexin/ticket/15266
[ticket/15266] Fix events in content_visibility
This commit is contained in:
@@ -268,7 +268,7 @@ $forum_id = (int) $topic_data['forum_id'];
|
||||
$user->page['forum'] = $forum_id;
|
||||
|
||||
// Now we know the forum_id and can check the permissions
|
||||
if ($topic_data['topic_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $forum_id))
|
||||
if (!$phpbb_content_visibility->is_visible('topic', $forum_id, $topic_data))
|
||||
{
|
||||
trigger_error('NO_TOPIC');
|
||||
}
|
||||
|
Reference in New Issue
Block a user