mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11728] Replace topic_approved with topic_visibility
PHPBB3-11728
This commit is contained in:
parent
127ee62edd
commit
aa77367267
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class phpbb_feed_topic extends phpbb_feed_post_base
|
|||
$this->forum_id = (int) $this->topic_data['forum_id'];
|
||||
|
||||
// Make sure topic is either approved or user authed
|
||||
if (!$this->topic_data['topic_approved'] && !$this->auth->acl_get('m_approve', $this->forum_id))
|
||||
if ($this->topic_data['topic_visibility'] != ITEM_APPROVED && !$this->auth->acl_get('m_approve', $this->forum_id))
|
||||
{
|
||||
trigger_error('SORRY_AUTH_READ');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue