From: Matthias Schmidt Date: Thu, 19 Jun 2014 12:07:56 +0000 (+0200) Subject: Disable captchas for registered users X-Git-Tag: 2.1.0_Alpha_1~692 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70b2872a2c7ef8c3ec824c7716ac783bc827e453;p=GitHub%2FWoltLab%2FWCF.git Disable captchas for registered users --- diff --git a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php index ad3d7845c2..1dcb83326c 100644 --- a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php @@ -69,7 +69,7 @@ abstract class AbstractCaptchaForm extends AbstractForm { * @see \wcf\page\IPage::readData() */ public function readData() { - if ($this->captchaObjectTypeName) { + if (!WCF::getUser()->userID && $this->captchaObjectTypeName) { $this->captchaObjectType = CaptchaHandler::getInstance()->getObjectTypeByName($this->captchaObjectTypeName); if ($this->captchaObjectType === null) { throw new SystemException("Unknown captcha object type with name '".$this->captchaObjectTypeName."'");