Change password button should be displayed according to the setting of the user who is been viewed, not the user who is viewing(currently logged in)

This commit is contained in:
patrickslee 2006-02-13 03:08:56 +00:00
parent 48dbefcd7d
commit 9896df48fd

View File

@ -283,7 +283,7 @@
echo "</td></tr></table>";
$internalpassword = false;
if (is_internal_auth($USER->auth) or (!empty($CFG->{'auth_'.$USER->auth.'_stdchangepassword'}))) {
if (is_internal_auth($user->auth) or (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}))) {
if (empty($CFG->loginhttps)) {
$internalpassword = "$CFG->wwwroot/login/change_password.php";
} else {