mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 09:44:26 +02:00
[feature/soft-delete] Fix some more usages of _approved column names
PHPBB3-9657
This commit is contained in:
@@ -406,9 +406,10 @@ if ($forum_data['forum_type'] == FORUM_POST)
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (!$row['topic_approved'] && !$auth->acl_get('m_approve', $row['forum_id']))
|
||||
if (($row['topic_visibility'] == ITEM_UNAPPROVED && !$auth->acl_get('m_approve', $row['forum_id']))
|
||||
&& ($row['topic_visibility'] == ITEM_DELETED && !$auth->acl_get('m_restore', $row['forum_id'])))
|
||||
{
|
||||
// Do not display announcements that are waiting for approval.
|
||||
// Do not display announcements that are waiting for approval or soft deleted.
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user