Fix disallowed BBCodes if editing comments
authorJoshua Rüsweg <josh@bastelstu.be>
Tue, 28 Nov 2017 21:21:15 +0000 (22:21 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Tue, 28 Nov 2017 21:21:28 +0000 (22:21 +0100)
wcfsetup/install/files/lib/data/comment/CommentAction.class.php
wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php

index 7eeaa6d3099f4c2d91f3aa027a991f69b0872bb7..e4ebff444f6776e8ad74c429cc827ce6c5785419 100644 (file)
@@ -771,6 +771,8 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli
                if (!$this->commentProcessor->canEditComment($this->comment->getDecoratedObject())) {
                        throw new PermissionDeniedException();
                }
+               
+               $this->setDisallowedBBCodes();
        }
        
        /**
index 9dff1affb9997bfc9d29695d5e9044266f6c051c..7e8835f0dbcd43daa6bd2d3af19129172c643d28 100644 (file)
@@ -236,6 +236,8 @@ class CommentResponseAction extends AbstractDatabaseObjectAction {
                if (!$this->commentProcessor->canEditResponse($this->response->getDecoratedObject())) {
                        throw new PermissionDeniedException();
                }
+               
+               $this->setDisallowedBBCodes();
        }
        
        /**