Code cleanup
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Mar 2017 16:12:04 +0000 (17:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Mar 2017 16:12:04 +0000 (17:12 +0100)
See #2219

wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php

index c441a05f0b03c22d64460096fe288f9816066e05..10372fe6b917cedd36d62acded3768549877abe9 100644 (file)
@@ -130,15 +130,6 @@ class StructuredCommentList extends CommentList {
                if (!empty($responseIDs)) {
                        $responseList = new CommentResponseList();
                        $responseList->setObjectIDs(array_keys($responseIDs));
-                       
-                       if ($this->commentManager->canModerate($this->objectTypeID, $this->objectID)) {
-                               
-                       }
-                       else {
-                               $responseList->getConditionBuilder()->add('comment_response.responseID IN (?)', [array_keys($responseIDs)]);
-                               $responseList->getConditionBuilder()->add('comment_response.isDisabled = 0');
-                       }
-                       
                        $responseList->readObjects();
                        
                        foreach ($responseList as $response) {