protected function checkExecutePermissions(User $user) { parent::checkExecutePermissions($user); if (!$this->getRequest()->wasPosted()) { $this->requireLogin('resetpass-no-info'); } }
public function checkExecutePermissions(User $user) { parent::checkExecutePermissions($user); # If the lock file isn't writable, we can do sweet bugger all if (!file_exists($this->getConfig()->get('ReadOnlyFile'))) { throw new ErrorPageError('lockdb', 'databasenotlocked'); } }
public function checkExecutePermissions(User $user) { global $wgReadOnly; FormSpecialPage::checkExecutePermissions($user); if (empty($wgReadOnly)) { throw new ErrorPageError('lockdb', 'databasenotlocked'); } }
public function checkExecutePermissions(User $user) { $status = Status::wrap($this->passwordReset->isAllowed($user)); if (!$status->isGood()) { throw new ErrorPageError('internalerror', $status->getMessage()); } parent::checkExecutePermissions($user); }
/** * Checks that the user can unblock themselves if they are trying to do so * * @param User $user * @throws ErrorPageError */ protected function checkExecutePermissions(User $user) { parent::checkExecutePermissions($user); # bug 15810: blocked admins should have limited access here $status = self::checkUnblockSelf($this->target, $user); if ($status !== true) { throw new ErrorPageError('badaccess', $status); } }
public function checkExecutePermissions(User $user) { global $wgReadOnlyFile; parent::checkExecutePermissions($user); # If the lock file isn't writable, we can do sweet bugger all if (!is_writable(dirname($wgReadOnlyFile))) { throw new ErrorPageError('lockdb', 'lockfilenotwritable'); } }
public function checkExecutePermissions(User $user) { global $wgReadOnlyFile; parent::checkExecutePermissions($user); # If the lock file isn't writable, we can do sweet bugger all if (!file_exists($wgReadOnlyFile)) { throw new ErrorPageError('lockdb', 'databasenotlocked'); } }
public function checkExecutePermissions(User $user) { $error = $this->canChangePassword($user); if (is_string($error)) { throw new ErrorPageError('internalerror', $error); } elseif (!$error) { throw new ErrorPageError('internalerror', 'resetpass_forbidden'); } return parent::checkExecutePermissions($user); }
protected function checkExecutePermissions(User $user) { parent::checkExecutePermissions($user); if (!$this->getConfig()->get('EnableBotPasswords')) { throw new ErrorPageError('botpasswords', 'botpasswords-disabled'); } $this->userId = CentralIdLookup::factory()->centralIdFromLocalUser($this->getUser()); if (!$this->userId) { throw new ErrorPageError('botpasswords', 'botpasswords-no-central-id'); } }
protected function checkExecutePermissions(User $user) { if (!AuthManager::singleton()->allowsPropertyChange('emailaddress')) { throw new ErrorPageError('changeemail', 'cannotchangeemail'); } $this->requireLogin('changeemail-no-info'); // This could also let someone check the current email address, so // require both permissions. if (!$this->getUser()->isAllowed('viewmyprivateinfo')) { throw new PermissionsError('viewmyprivateinfo'); } parent::checkExecutePermissions($user); }