From 27be69e3b3092def847d497c19bad7d4ad0a33d8 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sat, 1 Nov 2014 18:10:25 +0100 Subject: [ticket/13271] Disable CC sender feature for anonymous users PHPBB3-13271 --- phpBB/phpbb/message/form.php | 2 +- phpBB/styles/prosilver/template/memberlist_email.html | 2 ++ phpBB/styles/subsilver2/template/memberlist_email.html | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'phpBB') diff --git a/phpBB/phpbb/message/form.php b/phpBB/phpbb/message/form.php index 076b41dc07..21d4de0b4d 100644 --- a/phpBB/phpbb/message/form.php +++ b/phpBB/phpbb/message/form.php @@ -146,7 +146,7 @@ abstract class form WHERE user_id = ' . $this->user->data['user_id']; $this->db->sql_query($sql); - if ($this->cc_sender) + if ($this->cc_sender && $this->user->data['is_registered']) { $this->message->cc_sender(); } diff --git a/phpBB/styles/prosilver/template/memberlist_email.html b/phpBB/styles/prosilver/template/memberlist_email.html index 865f0b883c..e848844093 100644 --- a/phpBB/styles/prosilver/template/memberlist_email.html +++ b/phpBB/styles/prosilver/template/memberlist_email.html @@ -77,10 +77,12 @@ {L_EMAIL_BODY_EXPLAIN}
+
 
+ diff --git a/phpBB/styles/subsilver2/template/memberlist_email.html b/phpBB/styles/subsilver2/template/memberlist_email.html index 13ff4baace..b52513c241 100644 --- a/phpBB/styles/subsilver2/template/memberlist_email.html +++ b/phpBB/styles/subsilver2/template/memberlist_email.html @@ -66,6 +66,7 @@ {L_MESSAGE_BODY}
{L_EMAIL_BODY_EXPLAIN} + {L_OPTIONS} @@ -77,6 +78,7 @@ + -- cgit v1.2.1