/** * Hide the password reset page if resets are disabled. * @return Bool */ function isListed() { if ($this->canChangePassword($this->getUser()) === true) { return parent::isListed(); } return false; }
/** * Hide the password reset page if resets are disabled. * @return Bool */ function isListed() { global $wgUser; if ($this->canChangePassword($wgUser) === true) { return parent::isListed(); } return false; }
/** * Hide the password reset page if resets are disabled. * @return bool */ public function isListed() { if ($this->passwordReset->isAllowed($this->getUser())->isGood()) { return parent::isListed(); } return false; }