mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/10437] Do not display announcements that are waiting for approval
PHPBB3-10437
This commit is contained in:
parent
86f8851c40
commit
91155d1330
@ -376,6 +376,12 @@ 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']))
|
||||
{
|
||||
// Do not display announcements that are waiting for approval.
|
||||
continue;
|
||||
}
|
||||
|
||||
$rowset[$row['topic_id']] = $row;
|
||||
$announcement_list[] = $row['topic_id'];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user