From 203f9c24d4c8aea289b4dbb3515bcb5309ae8228 Mon Sep 17 00:00:00 2001 From: brunoais Date: Sun, 26 Oct 2014 07:44:44 +0000 Subject: [PATCH] [ticket/13141] Implement core.mcp_global_f_read_auth_after PHPBB3-13141 --- phpBB/mcp.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/phpBB/mcp.php b/phpBB/mcp.php index 25765b1af7..089f85265d 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -136,6 +136,19 @@ if ($forum_id && !$auth->acl_get('f_read', $forum_id)) { trigger_error('NOT_AUTHORISED'); } +/** +* Allow applying additional permissions to MCP access besides f_read +* +* @event core.mcp_global_f_read_auth_after +* @var string topic_id The topic the user tried to access +* @var array forum_id The forum the user tried to access +* @since 3.1.0-RC5 +*/ +$vars = array( + 'topic_id', + 'forum_id', +); +extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars))); if ($forum_id) {