aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-10-30 18:45:41 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-10-30 19:10:57 +0100
commitd6c3e7785d98190436acdd8468a1d343b673c55b (patch)
tree9924699d041509fb19de94e7c7d4c42adcf3dde1 /phpBB/includes
parent6d913d36466a308333535963f682c07b76df9369 (diff)
downloadforums-d6c3e7785d98190436acdd8468a1d343b673c55b.tar
forums-d6c3e7785d98190436acdd8468a1d343b673c55b.tar.gz
forums-d6c3e7785d98190436acdd8468a1d343b673c55b.tar.bz2
forums-d6c3e7785d98190436acdd8468a1d343b673c55b.tar.xz
forums-d6c3e7785d98190436acdd8468a1d343b673c55b.zip
[ticket/10365] Make sure moderators only get mcp_reports link when allowed
The m_report permission is not not being checked when displaying the link to mcp_reports. PHPBB3-10365
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index 76cd9beb92..9cdb69ed99 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -239,8 +239,8 @@ function mcp_topic_view($id, $mode, $action)
'MINI_POST_IMG' => ($post_unread) ? $user->img('icon_post_target_unread', 'UNREAD_POST') : $user->img('icon_post_target', 'POST'),
- 'S_POST_REPORTED' => ($row['post_reported']) ? true : false,
- 'S_POST_UNAPPROVED' => ($row['post_approved']) ? false : true,
+ 'S_POST_REPORTED' => ($auth->acl_get('m_report', $topic_info['forum_id']) && $row['post_reported']) ? true : false,
+ 'S_POST_UNAPPROVED' => ($auth->acl_get('m_approve', $topic_info['forum_id']) && $row['post_approved']) ? false : true,
'S_CHECKED' => (($submitted_id_list && !in_array(intval($row['post_id']), $submitted_id_list)) || in_array(intval($row['post_id']), $checked_ids)) ? true : false,
'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? true : false,