aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index 5486d7cb99..aef5e0c9eb 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -73,19 +73,25 @@ function compose_pm($id, $mode, $action)
switch ($action)
{
case 'post':
- case 'reply':
- case 'quote':
- case 'forward':
if (!$auth->acl_get('u_sendpm'))
{
trigger_error('NO_AUTH_SEND_MESSAGE');
}
+ break;
+ case 'reply':
+ case 'quote':
+ case 'forward':
if (!$msg_id)
{
trigger_error('NO_MESSAGE');
}
-
+
+ if (!$auth->acl_get('u_sendpm'))
+ {
+ trigger_error('NO_AUTH_SEND_MESSAGE');
+ }
+
if ($quote_post)
{
$sql = 'SELECT p.post_text as message_text, p.poster_id as author_id, p.post_time as message_time, p.bbcode_bitfield, p.bbcode_uid, p.enable_sig, p.enable_html, p.enable_smilies, p.enable_magic_url, t.topic_title as message_subject, u.username as quote_username