Skip to content

Commit 1c73b7a

Browse files
committed
[ticket/17390] Fix unset template variable for topic approval in mcp
Fixes a bug that was introduced in 558b8ae whereby a template variable was added to wrap around the approve / disapprove UI however that variable was not set in mcp_queue so the check failed every time meaning you couldn't approve from the MCP. PHPBB-17390
1 parent bf4e26a commit 1c73b7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

phpBB/includes/mcp/mcp_queue.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ public function main($id, $mode)
284284
$post_data = array(
285285
'S_MCP_QUEUE' => true,
286286
'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p=$post_id"),
287+
'S_CAN_APPROVE' => $auth->acl_get('m_approve', $post_info['forum_id']),
287288
'S_CAN_DELETE_POST' => $auth->acl_get('m_delete', $post_info['forum_id']),
288289
'S_CAN_VIEWIP' => $auth->acl_get('m_info', $post_info['forum_id']),
289290
'S_POST_REPORTED' => $post_info['post_reported'],

0 commit comments

Comments
 (0)