aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp
diff options
context:
space:
mode:
authorCullen Walsh <brainy@phpbb.com>2010-01-25 09:11:16 +0000
committerCullen Walsh <brainy@phpbb.com>2010-01-25 09:11:16 +0000
commitfb96fcd90aa2b6e8ec61de0aaef58df2d2551db4 (patch)
treed41369ab8a76020db0c83608233dc8fa045afc95 /phpBB/includes/ucp
parent92e7b1e3df60d7a74c6cf490aff655125d012a81 (diff)
downloadforums-fb96fcd90aa2b6e8ec61de0aaef58df2d2551db4.tar
forums-fb96fcd90aa2b6e8ec61de0aaef58df2d2551db4.tar.gz
forums-fb96fcd90aa2b6e8ec61de0aaef58df2d2551db4.tar.bz2
forums-fb96fcd90aa2b6e8ec61de0aaef58df2d2551db4.tar.xz
forums-fb96fcd90aa2b6e8ec61de0aaef58df2d2551db4.zip
[Fix] Don't send activation email when user tries to change email without permission (fix by nrohler). (Bug #56335)
Authorised by: naderman git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10438 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index e24acd89fc..f4f4abad4a 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -133,7 +133,7 @@ class ucp_profile
$message = 'PROFILE_UPDATED';
- if ($config['email_enable'] && $data['email'] != $user->data['user_email'] && $user->data['user_type'] != USER_FOUNDER && ($config['require_activation'] == USER_ACTIVATION_SELF || $config['require_activation'] == USER_ACTIVATION_ADMIN))
+ if ($auth->acl_get('u_chgemail') && $config['email_enable'] && $data['email'] != $user->data['user_email'] && $user->data['user_type'] != USER_FOUNDER && ($config['require_activation'] == USER_ACTIVATION_SELF || $config['require_activation'] == USER_ACTIVATION_ADMIN))
{
$message = ($config['require_activation'] == USER_ACTIVATION_SELF) ? 'ACCOUNT_EMAIL_CHANGED' : 'ACCOUNT_EMAIL_CHANGED_ADMIN';