From 9896df48fd97f36a37072a2de1d2359c0bb9a93f Mon Sep 17 00:00:00 2001
From: patrickslee <patrickslee>
Date: Mon, 13 Feb 2006 03:08:56 +0000
Subject: [PATCH] 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)

---
 user/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/user/view.php b/user/view.php
index 8da2c30a06d..91995bd7c24 100644
--- a/user/view.php
+++ b/user/view.php
@@ -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 {