Disable captchas for registered users
authorMatthias Schmidt <gravatronics@live.com>
Thu, 19 Jun 2014 12:07:56 +0000 (14:07 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 19 Jun 2014 12:07:56 +0000 (14:07 +0200)
wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php

index ad3d7845c29d5d1c7f402656ae4b2082a7239329..1dcb83326cf0c65b6db98bd9e5464de6c8b0ac9b 100644 (file)
@@ -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."'");