aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index acff846df7..1ecdabbf24 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -126,6 +126,12 @@ if (!$auth->acl_getf_global('m_'))
}
}
+// if the user cannot read the forum he tries to access then we won't allow mcp access either
+if ($forum_id && !$auth->acl_get('f_read', $forum_id))
+{
+ trigger_error($user->lang['NOT_AUTHORIZED']);
+}
+
if ($forum_id)
{
$module->acl_forum_id = $forum_id;