diff options
| author | Nils Adermann <naderman@naderman.de> | 2006-06-10 23:11:03 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2006-06-10 23:11:03 +0000 |
| commit | 1c169ed0899e469db53dbdff11f3d0ca040f269d (patch) | |
| tree | c0e601e932dc88a18cd3190de9e11645cb37942c /phpBB/mcp.php | |
| parent | 8b40e7fe330b4b18b18116c7a0d197186860e7df (diff) | |
| download | forums-1c169ed0899e469db53dbdff11f3d0ca040f269d.tar forums-1c169ed0899e469db53dbdff11f3d0ca040f269d.tar.gz forums-1c169ed0899e469db53dbdff11f3d0ca040f269d.tar.bz2 forums-1c169ed0899e469db53dbdff11f3d0ca040f269d.tar.xz forums-1c169ed0899e469db53dbdff11f3d0ca040f269d.zip | |
- forgot to commit common.php
- cleaning up a few more mcp permissions
- adjust some links
- make global topics work properly in MCP
git-svn-id: file:///svn/phpbb/trunk@6045 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
| -rw-r--r-- | phpBB/mcp.php | 6 |
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; |
