Remove obsolete code
authorMarcel Werk <burntime@woltlab.com>
Sun, 16 Jun 2024 11:30:09 +0000 (13:30 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 16 Jun 2024 11:30:09 +0000 (13:30 +0200)
wcfsetup/install/files/lib/system/endpoint/controller/core/comments/responses/RenderResponse.class.php

index c6abf16a315cd73ac4239480ff8b38b4bbd1777f..ecca04e7cdd0476a4422bed3fdf8e2f8bc9bc905 100644 (file)
@@ -63,9 +63,6 @@ final class RenderResponse implements IController
         if (!$commentManager->isAccessible($comment->objectID)) {
             throw new PermissionDeniedException();
         }
-        if ($response->commentID != $comment->commentID) {
-            throw new PermissionDeniedException();
-        }
         if ($response->isDisabled && !$commentManager->canModerate($comment->objectTypeID, $comment->objectID)) {
             throw new PermissionDeniedException();
         }