Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit efdb61e

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 1c847ef commit efdb61e

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
@@ -997,7 +997,7 @@ $s_account_reset_msg2 = 'Account password has been set to blank...';
997997
$s_account_unlock_msg = 'The account has been unlocked.';
998998

999999
# manage_user_update.php
1000-
$s_manage_user_protected_msg = 'Account protected. Access level and enabled protected. Otherwise, account has been updated...';
1000+
$s_manage_user_protected_msg = 'Account protected; the \'Access Level\' and \'Enabled\' fields cannot be modified. Other fields were successfully updated.';
10011001
$s_manage_user_updated_msg = 'Account successfully updated...';
10021002
$s_email_user_updated_subject = 'Account updated';
10031003
$s_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
@@ -132,6 +132,8 @@
132132
protected=" . db_param() . ", realname=" . db_param() . "
133133
WHERE id=" . db_param();
134134
$query_params = Array( $c_username, $c_email, $c_protected, $c_realname, $c_user_id );
135+
# Prevent e-mail notification for a change that did not happen
136+
$f_access_level = $t_old_access_level;
135137
} else {
136138
$query = "UPDATE $t_user_table
137139
SET username=" . db_param() . ", email=" . db_param() . ",

0 commit comments

Comments
 (0)
Please sign in to comment.