aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-10-14 18:29:50 +0000
committerChris Smith <toonarmy@phpbb.com>2008-10-14 18:29:50 +0000
commitbc2f055ccd3be52337d64af34aa685b5859ac850 (patch)
tree3045fb3f4c589ca8fb7bb61e7e7f92e60be85bda /phpBB/includes/mcp/mcp_queue.php
parent02dd8c52c2150ebf2e1f85032bcdf2924d00557b (diff)
downloadforums-bc2f055ccd3be52337d64af34aa685b5859ac850.tar
forums-bc2f055ccd3be52337d64af34aa685b5859ac850.tar.gz
forums-bc2f055ccd3be52337d64af34aa685b5859ac850.tar.bz2
forums-bc2f055ccd3be52337d64af34aa685b5859ac850.tar.xz
forums-bc2f055ccd3be52337d64af34aa685b5859ac850.zip
Moderators can only see reports/queue/logs from forums they can actually read. #31085
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9015 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index 665d7da20b..1e368c4fc6 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -242,6 +242,17 @@ class mcp_queue
}
$forum_list_approve = get_forum_list('m_approve', false, true);
+ $forum_list_read = array_flip(get_forum_list('f_read', true, true)); // Flipped so we can isset() the forum IDs
+
+ // Remove forums we cannot read
+ foreach ($forum_list_approve as $k => $forum_data)
+ {
+ if (!isset($forum_list_read[$forum_data['forum_id']]))
+ {
+ unset($forum_list_approve[$k]);
+ }
+ }
+ unset($forum_list_read);
if (!$forum_id)
{