1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-01 05:08:57 +02:00

[bug/58695] Only show unapproved posts in ATOM Feeds for moderators (Bug )

This commit is contained in:
Joas Schilling 2010-03-08 00:02:46 +01:00
parent 23141a2c51
commit 8d0c0dcbcd
2 changed files with 3 additions and 2 deletions

@ -103,6 +103,7 @@
<li>[Fix] Allow multibyte keys in request_var(). (Bug #51555)</li>
<li>[Fix] Prevent wrong tar archive type detection. (Bug #12531)</li>
<li>[Fix] Correct redirection after login to forum not in web root (Bug #58755)</li>
<li>[Fix] Only show unapproved posts in ATOM Feeds for moderators (Bug #58695)</li>
<li>[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)</li>
</ul>

@ -535,7 +535,7 @@ class phpbb_feed_base
if (!isset($forum_ids))
{
$forum_ids = array_keys($auth->acl_getf('m_approve'));
$forum_ids = array_keys($auth->acl_getf('m_approve', true));
}
return $forum_ids;
@ -994,7 +994,7 @@ class phpbb_feed_topic extends phpbb_feed_post_base
if (!$this->topic_data['topic_approved'])
{
// Also require m_approve
$in_fid_ary = array_intersect($in_fid_ary, array_keys($auth->acl_getf('m_approve')));
$in_fid_ary = array_intersect($in_fid_ary, array_keys($auth->acl_getf('m_approve', true)));
if (empty($in_fid_ary))
{