aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-06 10:04:58 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-06 10:04:58 +0100
commit2fae00c433464c622bfcec1e3d23488f0629c85d (patch)
treeb00a5c4c3905aa3e80dae475a759b6afede87d62
parentef00adac8b6f3be06f76fa14df35c8e3d06b40af (diff)
parent35b7f9475487221589107ea153a59ddcd98c9d18 (diff)
downloadforums-2fae00c433464c622bfcec1e3d23488f0629c85d.tar
forums-2fae00c433464c622bfcec1e3d23488f0629c85d.tar.gz
forums-2fae00c433464c622bfcec1e3d23488f0629c85d.tar.bz2
forums-2fae00c433464c622bfcec1e3d23488f0629c85d.tar.xz
forums-2fae00c433464c622bfcec1e3d23488f0629c85d.zip
Merge branch 'develop-ascraeus' into develop
-rw-r--r--phpBB/mcp.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 25765b1af7..f9d46db528 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -137,6 +137,28 @@ 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 action The action the user tried to execute
+* @var int forum_id The forum the user tried to access
+* @var string mode The MCP module the user is trying to access
+* @var p_master module Module system class
+* @var bool quickmod True if the user is accessing using quickmod tools
+* @var int topic_id The topic the user tried to access
+* @since 3.1.3-RC1
+*/
+$vars = array(
+ 'action',
+ 'forum_id',
+ 'mode',
+ 'module',
+ 'quickmod',
+ 'topic_id',
+);
+extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars)));
+
if ($forum_id)
{
$module->acl_forum_id = $forum_id;