From 57c6c835ebf053bcce0ae81c8013e0320931ca4d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 20 Feb 2009 18:57:13 +0000 Subject: [PATCH] Make name box enabled/disabled based on right to use it, not on whether we're changing ourself. --- includes/specials/SpecialResetpass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialResetpass.php b/includes/specials/SpecialResetpass.php index 60453bba9a..49e2530d4b 100644 --- a/includes/specials/SpecialResetpass.php +++ b/includes/specials/SpecialResetpass.php @@ -125,7 +125,7 @@ class SpecialResetpass extends SpecialPage { wfMsgExt( 'resetpass_text', array( 'parse' ) ) . Xml::openElement( 'table', array( 'id' => 'mw-resetpass-table' ) ) . $this->pretty( array( - array( 'wpName', 'username', 'text', $this->mUserName, !$this->mSelfChange ), + array( 'wpName', 'username', 'text', $this->mUserName, $wgUser->isAllowed( 'reset-passwords' ) ), array( 'wpPassword', $oldpassMsg, 'password', $this->mOldpass, $this->mSelfChange ), array( 'wpNewPassword', 'newpassword', 'password', '', true ), array( 'wpRetype', 'retypenew', 'password', '', true ), -- 2.20.1