aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-08 15:49:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-08 15:49:13 +0000
commitfcec5b61daecb4a0174418d3851ee1e0e8a0d93c (patch)
tree9c91c227d7110f962b5a469d2632c7898e0e8848 /phpBB/posting.php
parent738d26f92c56198a22b3088bf1b0c3b641a990db (diff)
downloadforums-fcec5b61daecb4a0174418d3851ee1e0e8a0d93c.tar
forums-fcec5b61daecb4a0174418d3851ee1e0e8a0d93c.tar.gz
forums-fcec5b61daecb4a0174418d3851ee1e0e8a0d93c.tar.bz2
forums-fcec5b61daecb4a0174418d3851ee1e0e8a0d93c.tar.xz
forums-fcec5b61daecb4a0174418d3851ee1e0e8a0d93c.zip
again... some more fixes.
git-svn-id: file:///svn/phpbb/trunk@7150 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index e585b73e7d..cf27952e12 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -850,7 +850,7 @@ if ($submit || $preview || $refresh)
include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
$template->assign_vars(array(
- 'S_FORUM_SELECT' => make_forum_select(false, false, false, true, true),
+ 'S_FORUM_SELECT' => make_forum_select(false, false, false, true, true, true),
'S_UNGLOBALISE' => true)
);
@@ -859,6 +859,12 @@ if ($submit || $preview || $refresh)
}
else
{
+ if (!$auth->acl_get('f_post', $to_forum_id))
+ {
+ // This will only be triggered if the user tried to trick the forum.
+ trigger_error('NOT_AUTHORIZED');
+ }
+
$forum_id = $to_forum_id;
}
}