1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 07:07:51 +02:00

Merge remote-tracking branch 'nickvergessen/ticket/11728' into develop

* nickvergessen/ticket/11728:
  [ticket/11728] Replace topic_approved with topic_visibility
This commit is contained in:
Andreas Fischer 2013-07-22 23:21:46 +02:00
commit 73ae52d057

View File

@ -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');
}