aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_topic.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-11-13 15:47:40 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-11-13 15:47:40 +0100
commit8f381fc8aeeaf534d85b1bb53ec6b76648f6567f (patch)
treed84dfa10b998eaf3eaa82e4d75e985305d36b73c /phpBB/includes/mcp/mcp_topic.php
parentec1445371d0a312a41d9f1137c064b4abfa93bc8 (diff)
parent4c765bb20653272db49d98a311ae9eea6c480265 (diff)
downloadforums-8f381fc8aeeaf534d85b1bb53ec6b76648f6567f.tar
forums-8f381fc8aeeaf534d85b1bb53ec6b76648f6567f.tar.gz
forums-8f381fc8aeeaf534d85b1bb53ec6b76648f6567f.tar.bz2
forums-8f381fc8aeeaf534d85b1bb53ec6b76648f6567f.tar.xz
forums-8f381fc8aeeaf534d85b1bb53ec6b76648f6567f.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10365] Fix up S_POST_UNAPPROVED check, make it easier to read [ticket/10365] Require m_report permission to see reports in mcp_post [ticket/10365] Make sure moderators only get mcp_reports link when allowed
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-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 8a8ef11289..f080d78b1e 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' => ($row['post_reported'] && $auth->acl_get('m_report', $topic_info['forum_id'])),
+ 'S_POST_UNAPPROVED' => (!$row['post_approved'] && $auth->acl_get('m_approve', $topic_info['forum_id'])),
'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,