diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index ba79660646..be8d9f745a 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -109,6 +109,7 @@
[Fix] Fix incorrect ampersand encoding in redirect parameter. (Bug #58465)
[Fix] Fix open_basedir issues when accessing styles- and language-management. (Bug #59135)
[Fix] Fix table binding issues with PostgreSQL in board-wide feed. (Bug #58425)
+ [Fix] Only show unapproved posts in ATOM Feeds for moderators (Bug #58695)
[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)
[Feature] The memcache acm plugin now supports multiple memcache servers.
diff --git a/phpBB/feed.php b/phpBB/feed.php
index 4ce983a967..4e286ca9b9 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -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, $this->get_moderator_approve_forums());
if (empty($in_fid_ary))
{