From 70b2872a2c7ef8c3ec824c7716ac783bc827e453 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 19 Jun 2014 14:07:56 +0200 Subject: [PATCH] Disable captchas for registered users --- wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."'"); -- 2.20.1