1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 16:22:22 +02:00

[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
This commit is contained in:
Daniel James 2024-09-02 17:13:49 +01:00
parent bf4e26a0b8
commit 1c73b7ab19

View File

@ -284,6 +284,7 @@ class mcp_queue
$post_data = array(
'S_MCP_QUEUE' => true,
'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p=$post_id"),
'S_CAN_APPROVE' => $auth->acl_get('m_approve', $post_info['forum_id']),
'S_CAN_DELETE_POST' => $auth->acl_get('m_delete', $post_info['forum_id']),
'S_CAN_VIEWIP' => $auth->acl_get('m_info', $post_info['forum_id']),
'S_POST_REPORTED' => $post_info['post_reported'],