/**
  * Hide the password reset page if resets are disabled.
  * @return Bool
  */
 function isListed()
 {
     if ($this->canChangePassword($this->getUser()) === true) {
         return parent::isListed();
     }
     return false;
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 /**
  * 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;
 }