Skip to content

Commit 37a2fee

Browse files
committedNov 29, 2012
Don't send notif mail when updating Protected account's Access Level
Prior to this, Mantis would effectively not update the protected user account's 'Access Level' field, but would still send a notification to the user informing them that the field was modified, causing confusion. The confirmation message for protected account update was reworded. Fixes #15247
1 parent dd67923 commit 37a2fee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎lang/strings_english.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ If you requested this verification, visit the following URL to change your passw
916916
'account_unlock_msg' => 'The account has been unlocked.',
917917

918918
# manage_user_update.php
919-
'manage_user_protected_msg' => 'Account protected. Access level and enabled protected. Otherwise, account has been updated...',
919+
'manage_user_protected_msg' => 'Account protected; the \'Access Level\' and \'Enabled\' fields cannot be modified. Other fields were successfully updated.',
920920
'manage_user_updated_msg' => 'Account successfully updated...',
921921
'email_user_updated_subject' => 'Account updated',
922922
'email_user_updated_msg' => 'Your account has been updated by an administrator. A list of these changes is provided below. You can update your account details and preferences at any time by visiting the following URL:',

‎manage_user_update.php

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@
164164
protected=" . db_param() . ", realname=" . db_param() . "
165165
WHERE id=" . db_param();
166166
$query_params = Array( $c_username, $c_email, $c_protected, $c_realname, $c_user_id );
167+
# Prevent e-mail notification for a change that did not happen
168+
$f_access_level = $t_old_access_level;
167169
} else {
168170
$query = "UPDATE $t_user_table
169171
SET username=" . db_param() . ", email=" . db_param() . ",

0 commit comments

Comments
 (0)
Please sign in to comment.